[Webkit-unassigned] [Bug 75781] Rounding artifact in SVGTextNode.getBBox()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 19 03:45:09 PDT 2012


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





--- Comment #10 from Dominik Röttsches (drott) <dominik.rottsches at intel.com>  2012-06-19 03:45:08 PST ---
(In reply to comment #9)
As I mentioned, it's a problem with bounding box calculation rather than the actual transformations at draw time. At layout time the bounding box is calculated accurately in floats, but then is simplified down to integers. Cmp. SVGRootInlineBox::layoutRootBox() - don't get mislead by the keyword layout in it. It's just that bounding boxes for text objects are calculated during layout phase.

> Now, imagine a user space defined as [0, 0, 1, 1]. Let's say it is laid out on a display rectangle with these co-ordinates: [50, 50, 250, 250]. I understand you as saying that because of rounding in the display co-ordinates, my user co-ordinates can only be precise to 0.005. I could live with that, but that's not what I see. What I see is the co-ordinates of the bounding box rounded to 0 or 1. I either get a zero-size box or one that spans my entire space.

Yep, that's more or less exactly the test case in bug 88772.

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