Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: Source/WebCore/svg/SVGTextPathElement.cpp

Issue 8203008: Merge 96707 - Crash in SVGTRefElement::updateReferencedText. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/svg/SVGTRefElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/svg/SVGTextPathElement.cpp
===================================================================
--- Source/WebCore/svg/SVGTextPathElement.cpp (revision 96953)
+++ Source/WebCore/svg/SVGTextPathElement.cpp (working copy)
@@ -145,7 +145,12 @@
String id;
Element* targetElement = SVGURIReference::targetElementFromIRIString(href(), document(), &id);
if (!targetElement) {
+ if (hasPendingResources() || id.isEmpty())
+ return;
+
+ ASSERT(!hasPendingResources());
document()->accessSVGExtensions()->addPendingResource(id, this);
+ ASSERT(hasPendingResources());
return;
}
}
« no previous file with comments | « Source/WebCore/svg/SVGTRefElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698