[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 23:26:52 PDT 2011


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





--- Comment #10 from Dirk Schulze <krit at webkit.org>  2011-08-05 23:26:52 PST ---
(In reply to comment #9)
> 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.

I agree with Rob, we did this in the past, so I don't see problems. The compiler flag for 10.5 was TIGER IIRC

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