ASSERT((*it)->correspondingElement() == element);
(*it)->shadowTreeElement()->setCorrespondingElement(0);
- // The shadow tree, which is eventually animated, is mutated. In order to keep the animVal
- // logic correct, we have to stop the animation, and restart it once the shadow tree has
- // recloned. Otherwise we miss to call stopAnimValAnimation() on the old shadow tree element
- // which leads to an assertion once garbage is collected, if the animVal bindings have been
- // accessed from JS. It would also assert on the next updateAnimations() call as the new
- // SVGAnimatedProperty object hasn't been initialized yet (using startAnimValAnimation).
- element->document()->accessSVGExtensions()->removeAllAnimationElementsFromTarget(element);
-
if (SVGUseElement* element = (*it)->correspondingUseElement()) {
ASSERT(element->inDocument());
element->invalidateShadowTree();