Bug 25225 - getBBox() (implemented with objectBoundingBox()) is often wrong
: getBBox() (implemented with objectBoundingBox()) is often wrong
Product: WebKit
Classification: Unclassified
Component: SVG
: 528+ (Nightly build)
: Macintosh Mac OS X 10.5
: P2 Normal
Assigned To: Nobody
Depends on: 25224
  Show dependency treegraph
Reported: 2009-04-15 17:24 PDT by Eric Seidel
Modified: 2010-07-02 00:17 PDT (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel 2009-04-15 17:24:42 PDT
getBBox() (implemented with objectBoundingBox()) is often wrong

RenderSVGTSpan has an empty implementation.  RenderForeignObject returns the borderBox() which, although un-spec'd, is correct according to Doug and Erik in #svg.  They may yet issue an Errata to cover the issue.

I'm sure other SVG renderers are missing proper objectBoundingBox() implementations (which will show up as ASSERTs in debug mode when viewing the right SVGs, or when calling getBBox() on the right elements).  This bug tracks fixing all these and landing a test case testing getBBox() on various SVG elements.
Comment 1 Nikolas Zimmermann 2010-07-02 00:17:19 PDT
Fixed in trunk. Closing bug.