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

Unified Diff: Source/core/svg/SVGUseElement.cpp

Issue 1134453003: Merge 194421 "Avoid transiently creating disallowed elements whe..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2357/
Patch Set: Created 5 years, 7 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 | « LayoutTests/svg/custom/use-referencing-animation-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/core/svg/SVGUseElement.cpp
===================================================================
--- Source/core/svg/SVGUseElement.cpp (revision 195030)
+++ Source/core/svg/SVGUseElement.cpp (working copy)
@@ -392,7 +392,7 @@
// Do not allow self-referencing.
// 'target' may be null, if it's a non SVG namespaced element.
- if (!target || target == this)
+ if (!target || target == this || isDisallowedElement(target))
return;
// Set up root SVG element in shadow tree.
« no previous file with comments | « LayoutTests/svg/custom/use-referencing-animation-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698