[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 17:50:38 PDT 2011


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


Rob Buis <rwlbuis at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rwlbuis at gmail.com




--- Comment #9 from Rob Buis <rwlbuis at gmail.com>  2011-08-05 17:50:38 PST ---
Hi Tim,

(In reply to comment #8)
> (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?

Can you just ifdef the use of CGPathGetPathBoundingBox so at least it is fixed for >= 10.6?
Cheers,

Rob.

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