[Webkit-unassigned] [Bug 42815] getBoundingClientRect Broken for SVG Elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 28 19:12:12 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42815


Cosmin Truta <ctruta at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #69153|                            |review?, commit-queue?
               Flag|                            |




--- Comment #19 from Cosmin Truta <ctruta at chromium.org>  2010-09-28 19:12:11 PST ---
Created an attachment (id=69153)
 --> (https://bugs.webkit.org/attachment.cgi?id=69153)
Fix and layout test for zoomed elements

getBoundingClientRect finally works correctly with zooming.

There are still off-by-one errors when zoomed arbitrarily. I'm pretty sure that's because the bounding rectangle is adjusted for absolute zoom *after* it is converted to IntRect. The roundoff errors are significant enough to cause off-by-one, and sometimes even off-by-two errors from time to time. The layout test that I included is okay, though, because zooming is done at well-behaved ratios (50% and 200%).

I placed the layout test in the css3/ directory, rather than in an svg/ subdirectory, because I discovered that the zoom attribute hasn't been tested with getBoundingC..., not even for HTML elements.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list