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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 19 02:54:00 PDT 2012


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





--- Comment #9 from Gene Selkov <selkovjr at gmail.com>  2012-06-19 02:53:58 PST ---
I still can't say I see the problem I reported as a layout problem. The thing is, all nodes defined in user co-ordinates are laid out correctly (as far as I can tell). The problem is in going back from the display co-ordinates to user space, which is what getBBox() is supposed to do. It does that approximately correctly when the user space spans many enough whole units that the effects of rounding can be ignored.

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.

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