[Webkit-unassigned] [Bug 172866] Object bounding box wrong for some paths

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 2 17:25:50 PDT 2017


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

--- Comment #3 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
RenderSVGShape::calculateObjectBoundingBox() is calling path().fastBoundingRect() which, on macOS, calls CGPathGetBoundingBox(). The comments say:

/* Return the bounding box of `path'. The bounding box is the smallest
   rectangle completely enclosing all points in the path, including control
   points for Bézier cubic and quadratic curves. If the path is empty, then
   return `CGRectNull'. */

We should instead use:

/* Return the path bounding box of `path'. The path bounding box is the
   smallest rectangle completely enclosing all points in the path, *not*
   including control points for Bézier cubic and quadratic curves. If the
   path is empty, then return `CGRectNull'. */

CG_EXTERN CGRect CGPathGetPathBoundingBox(CGPathRef path);

but need to vet all callers of Path::fastBoundingRect().

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170603/02f11d3a/attachment.html>


More information about the webkit-unassigned mailing list