Chromium Code Reviews

Unified Diff: Source/WebCore/svg/animation/SVGSMILElement.cpp

Issue 10762004: Merge 121491 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « LayoutTests/svg/custom/animate-reference-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « LayoutTests/svg/custom/animate-reference-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine