| Index: Source/core/svg/SVGGraphicsElement.cpp
|
| diff --git a/Source/core/svg/SVGGraphicsElement.cpp b/Source/core/svg/SVGGraphicsElement.cpp
|
| index 95bb0c2cd87f6466aff61fed9b86d4f499761283..f111f22b8bbdc838697f9bad82baee2bcdaa6c7f 100644
|
| --- a/Source/core/svg/SVGGraphicsElement.cpp
|
| +++ b/Source/core/svg/SVGGraphicsElement.cpp
|
| @@ -223,28 +223,38 @@ SVGElement* SVGGraphicsElement::farthestViewportElement() const
|
| return farthest;
|
| }
|
|
|
| -SVGRect SVGGraphicsElement::getBBox()
|
| +FloatRect SVGGraphicsElement::getBBox()
|
| {
|
| document().updateLayoutIgnorePendingStylesheets();
|
|
|
| // FIXME: Eventually we should support getBBox for detached elements.
|
| if (!renderer())
|
| - return SVGRect();
|
| + return FloatRect();
|
|
|
| return renderer()->objectBoundingBox();
|
| }
|
|
|
| -SVGRect SVGGraphicsElement::getStrokeBBox()
|
| +PassRefPtr<SVGRectTearOff> SVGGraphicsElement::getBBoxFromJavascript()
|
| +{
|
| + return SVGRectTearOff::create(SVGRect::create(getBBox()), 0, PropertyIsNotAnimVal);
|
| +}
|
| +
|
| +FloatRect SVGGraphicsElement::getStrokeBBox()
|
| {
|
| document().updateLayoutIgnorePendingStylesheets();
|
|
|
| // FIXME: Eventually we should support getStrokeBBox for detached elements.
|
| if (!renderer())
|
| - return SVGRect();
|
| + return FloatRect();
|
|
|
| return renderer()->strokeBoundingBox();
|
| }
|
|
|
| +PassRefPtr<SVGRectTearOff> SVGGraphicsElement::getStrokeBBoxFromJavascript()
|
| +{
|
| + return SVGRectTearOff::create(SVGRect::create(getStrokeBBox()), 0, PropertyIsNotAnimVal);
|
| +}
|
| +
|
| RenderObject* SVGGraphicsElement::createRenderer(RenderStyle*)
|
| {
|
| // By default, any subclass is expected to do path-based drawing
|
|
|