Index: Source/core/rendering/svg/RenderSVGInline.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGInline.cpp b/Source/core/rendering/svg/RenderSVGInline.cpp |
index 6707906d526aef2cdee9e5ff1d97fcdabd4e6a78..51d884076255eb29491d563b09d896bdf9befaf1 100644 |
--- a/Source/core/rendering/svg/RenderSVGInline.cpp |
+++ b/Source/core/rendering/svg/RenderSVGInline.cpp |
@@ -41,6 +41,10 @@ bool RenderSVGInline::isChildAllowed(RenderObject* child, RenderStyle* style) co |
if (child->node()->hasTagName(SVGNames::aTag)) |
return false; |
} |
+ |
+ if (!child->isSVGInline() && !child->isSVGInlineText()) |
+ return false; |
+ |
return RenderInline::isChildAllowed(child, style); |
} |