[Webkit-unassigned] [Bug 48110] getBoundingClientRect: loss of precision because of premature float-to-int truncation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 21 21:44:13 PDT 2010


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





--- Comment #1 from Cosmin Truta <ctruta at chromium.org>  2010-10-21 21:44:13 PST ---
Created an attachment (id=71524)
 --> (https://bugs.webkit.org/attachment.cgi?id=71524&action=review)
Test case (layout test)

This is the test case, to be run from LayoutTests/svg/zoom/page/

The current (incorrect) output, after one zoom-in operation, is the below. (The results vary from zoom level to zoom level.)

Zoom in, then reload. You should not see any loss of precision.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

PASS svg1.left is 0
PASS svg1.top is 0
PASS svg1.width is 150
FAIL svg1.height should be 50. Was 51.
PASS svg1.right is 150
FAIL svg1.bottom should be 50. Was 51.
PASS rect1.left is 0
PASS rect1.top is 0
FAIL rect1.width should be 100. Was 101.
FAIL rect1.height should be 50. Was 51.
FAIL rect1.right should be 100. Was 101.
FAIL rect1.bottom should be 50. Was 51.
PASS image1.left is 100
PASS image1.top is 0
PASS image1.width is 50
FAIL image1.height should be 50. Was 51.
PASS image1.right is 150
FAIL image1.bottom should be 50. Was 51.

PASS successfullyParsed is true

TEST COMPLETE

-- 
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