RESOLVED FIXED Bug 39884
Full Page Zoom: rounding errors with element metrics
https://bugs.webkit.org/show_bug.cgi?id=39884
Summary Full Page Zoom: rounding errors with element metrics
Ojan Vafai
Reported 2010-05-28 10:33:45 PDT
Google Spreadsheets has some bugs with rounding errors during full page zoom. The cause is the rounding to an int in adjustForLocalZoom in Element.cpp. It used to be unusable during full page zoom because the rounding errors would add up to quite a bit. They've thrown a bunch of JS code at it that detects the zoom level and guesses at what the rounding error will be. It mostly works now, but it's unfortunate, it's fragile and this surely affects other sites. Firefox doesn't have this problem because use decimal values both interally and exposed to JS. Should we do the same? That's a super scary change, but it's the only way I can think of making full-page zoom actually work. Test case attached.
Attachments
test case (378 bytes, text/html)
2010-05-28 18:33 PDT, Ojan Vafai
no flags
Ojan Vafai
Comment 1 2010-05-28 18:33:11 PDT
Created attachment 57400 [details] test case
Emil A Eklund
Comment 2 2012-10-08 16:14:57 PDT
This has been fixed by subpixel layout and works as expected on ports that enable the SUBPIXEL_LAYOUT flag. Marking as fixed. Bug 85532 tracks the ports that have turned on the flag.
Note You need to log in before you can comment on or make changes to this bug.