Apparently the problem is caused by temporary zoom. The problem is gone when the following lines are commented:
1258-1259 in RenderWidget.cc
1829-1830 in RenderViewImpl.cc
I might have bad assumptions about how temporary zoom works in my mind, so I will look into this further and talk to the person who implemented temporary zoom to see if I can get a better idea on what it does exactly.
Comment 1 by akaba@google.com
, Jul 5