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. |