[Webkit-unassigned] [Bug 81104] REGRESSION: getBBox returns incorrect results with empty containers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 19 08:17:58 PDT 2012


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





--- Comment #10 from Nikolas Zimmermann <zimmermann at kde.org>  2012-03-19 08:17:58 PST ---
(In reply to comment #7)
> A big part of the problem is that WebKit and SVG does not define the notion of an "invalid" as opposed to "zero-sized" bounding box. It wouldn't surprise me if the empty <g> element is returning (0, 0, 0, 0) as the bound and the code in its parent just combines that with the rect's bound.
> 
> This is problematic because I also read the spec to mean that a path with a single move(0,0) in it should contribute to the bounding box, even though its bound is also (0,0,0,0).

How about introducing a static FloatRect::invalid(), and use that whenever we want to indicate error state?

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