[Webkit-unassigned] [Bug 76177] SVG group getBBox returns 0, 0, 0, 0 for a group of perpendicular paths
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jan 14 08:38:32 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=76177
Philip Rogers <pdr at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #122241|0 |1
is obsolete| |
Attachment #122548| |review?, commit-queue?
Flag| |
--- Comment #9 from Philip Rogers <pdr at google.com> 2012-01-14 08:38:31 PST ---
Created an attachment (id=122548)
--> (https://bugs.webkit.org/attachment.cgi?id=122548&action=review)
Fix getBBox for perpendicular paths
This patch contains two fixes for failures exposed in my previous patch:
1) We need to special-case the first bounding box in SVGRendererSupport::computeContainerBoundingBoxes. What's happening is we start with a bounding box of 0,0,0,0 and we add the union of all our child bounding boxes. The problem is that the resulting bounding box will always start at x=0, y=0, due to the initial bounding box of 0,0,0,0, so we need to special-case the first child and set the initial bounding box to our first child's bounding box.
2) My previous patch had a mistake where I failed to transform a child's bounding box using transform.mapRect().
--
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