Index: Source/WebCore/svg/animation/SVGSMILElement.cpp |
=================================================================== |
--- Source/WebCore/svg/animation/SVGSMILElement.cpp (revision 122141) |
+++ Source/WebCore/svg/animation/SVGSMILElement.cpp (working copy) |
@@ -552,6 +552,9 @@ |
if (m_targetElement) |
return m_targetElement; |
+ if (!inDocument()) |
+ return 0; |
+ |
String href = getAttribute(XLinkNames::hrefAttr); |
ContainerNode* target = href.isEmpty() ? parentNode() : SVGURIReference::targetElementFromIRIString(href, document()); |
if (!target || !target->isSVGElement()) |