[Webkit-unassigned] [Bug 53512] getBBox() on a SVGPathElement with curves incorrectly includes control points

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 5 16:12:04 PDT 2011


--- Comment #8 from Tim Horton <timothy_horton at apple.com>  2011-08-05 16:12:04 PST ---
(In reply to comment #7)
> Thanks, Matt. Changed the title correspondingly.

So, I don't know why it happens on Chromium/Linux, but the reason it happens on OS X is clear:

My example program used CGPathGetPathBoundingBox, which doesn't include the control points, but WebKit uses CGPathGetBoundingBox, which *does*. The reason Niko's seeing confusing things in GDB is that CGPathGetBoundingBox must call CGPathGetPathBoundingBox.

I just made a build using CGPathGetPathBounding box and it perfectly bounds just the shape.

However, I don't think we can use CGPathGetPathBoundingBox, since it's only available on 10.6 and above.

What's the correct way to fix this?

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