Index: Source/WebCore/svg/SVGElement.cpp |
=================================================================== |
--- Source/WebCore/svg/SVGElement.cpp (revision 118301) |
+++ Source/WebCore/svg/SVGElement.cpp (working copy) |
@@ -129,7 +129,7 @@ |
// If we're living in a shadow tree, we're a <svg> element that got created as replacement |
// for a <symbol> element or a cloned <svg> element in the referenced tree. In that case |
// we're always an inner <svg> element. |
- if (isInShadowTree()) |
+ if (isInShadowTree() && parentOrHostElement() && parentOrHostElement()->isSVGElement()) |
return false; |
// Element may not be in the document, pretend we're outermost for viewport(), getCTM(), etc. |