[Webkit-unassigned] [Bug 93290] New: getBBox() returns (0, 0) when width or height is zero.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 6 12:37:18 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=93290
Summary: getBBox() returns (0,0) when width or height is zero.
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pdr at google.com
CC: zimmermann at kde.org
Created an attachment (id=156745)
--> (https://bugs.webkit.org/attachment.cgi?id=156745&action=review)
Testcase
Original bug: http://code.google.com/p/chromium/issues/detail?id=140472
For rects/ellipses with width or height of 0, we incorrectly return the bounding box as being empty.
Fixing this is a two step process:
1) Rects/Ellipses currently have an isEmpty() check in updateShapeFromElement() that should be changed to isZero()
2) When rects/ellipses fall back to renderSVGShape, their fill bounding box should not fall back. The reason is: the fill bounding box does not care about non-scaling-strokes or rounded corners, so we do not have to rely on Skia's path bounding box calculation (which, because it is a pixel library, will return (0,0)).
This is a good starter bug.
--
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