Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGGraphicsElement.cpp
index 2b4e889..b02670e 100644 (file)
@@ -37,11 +37,11 @@ DEFINE_ANIMATED_TRANSFORM_LIST(SVGGraphicsElement, SVGNames::transformAttr, Tran
 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGGraphicsElement)
     REGISTER_LOCAL_ANIMATED_PROPERTY(transform)
     REGISTER_PARENT_ANIMATED_PROPERTIES(SVGElement)
-    REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests)
 END_REGISTER_ANIMATED_PROPERTIES
 
 SVGGraphicsElement::SVGGraphicsElement(const QualifiedName& tagName, Document& document, ConstructionType constructionType)
     : SVGElement(tagName, document, constructionType)
+    , SVGTests(this)
 {
     registerAnimatedPropertiesForSVGGraphicsElement();
 }
@@ -239,22 +239,6 @@ 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 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