| Index: Source/WebCore/svg/animation/SVGSMILElement.cpp
|
| ===================================================================
|
| --- Source/WebCore/svg/animation/SVGSMILElement.cpp (revision 122881)
|
| +++ Source/WebCore/svg/animation/SVGSMILElement.cpp (working copy)
|
| @@ -235,11 +235,8 @@
|
| disconnectConditions();
|
|
|
| // Clear target now, because disconnectConditions calls targetElement() which will recreate the target if we removed it sooner.
|
| - if (m_targetElement) {
|
| - document()->accessSVGExtensions()->removeAnimationElementFromTarget(this, m_targetElement);
|
| - targetElementWillChange(m_targetElement, 0);
|
| - m_targetElement = 0;
|
| - }
|
| + if (m_targetElement)
|
| + resetTargetElement();
|
|
|
| m_attributeName = anyQName();
|
| }
|
| @@ -584,6 +581,7 @@
|
|
|
| void SVGSMILElement::resetTargetElement()
|
| {
|
| + document()->accessSVGExtensions()->removeAnimationElementFromTarget(this, m_targetElement);
|
| targetElementWillChange(m_targetElement, 0);
|
| m_targetElement = 0;
|
| animationAttributeChanged();
|
|
|