| Index: Source/WebCore/svg/animation/SVGSMILElement.cpp
|
| ===================================================================
|
| --- Source/WebCore/svg/animation/SVGSMILElement.cpp (revision 122142)
|
| +++ Source/WebCore/svg/animation/SVGSMILElement.cpp (working copy)
|
| @@ -556,6 +556,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())
|
|
|