Unify SVG's animation and target tracking systems.
[WebKit-https.git] / Source / WebCore / svg / SVGElement.cpp
index ce806c5..6cd4e83 100644 (file)
@@ -83,7 +83,6 @@ SVGElement::~SVGElement()
         rareDataMap.remove(it);
     }
     ASSERT(document());
-    document()->accessSVGExtensions()->removeAllAnimationElementsFromTarget(this);
     document()->accessSVGExtensions()->removeAllElementReferencesForTarget(this);
 }
 
@@ -183,7 +182,6 @@ void SVGElement::removedFrom(ContainerNode* rootParent)
     StyledElement::removedFrom(rootParent);
 
     if (wasInDocument) {
-        document()->accessSVGExtensions()->removeAllAnimationElementsFromTarget(this);
         document()->accessSVGExtensions()->removeAllElementReferencesForTarget(this);
         document()->accessSVGExtensions()->removeElementFromPendingResources(this);
     }
@@ -537,10 +535,8 @@ void SVGElement::attributeChanged(const QualifiedName& name, const AtomicString&
 {
     StyledElement::attributeChanged(name, newValue);
 
-    if (isIdAttributeName(name)) {
-        document()->accessSVGExtensions()->removeAllAnimationElementsFromTarget(this);
+    if (isIdAttributeName(name))
         document()->accessSVGExtensions()->removeAllElementReferencesForTarget(this);
-    }
 
     // Changes to the style attribute are processed lazily (see Element::getAttribute() and related methods),
     // so we don't want changes to the style attribute to result in extra work here.