Index: Source/core/rendering/svg/RenderSVGRoot.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGRoot.cpp b/Source/core/rendering/svg/RenderSVGRoot.cpp |
index 5a6be538f0dbd6c32fff47465fbf28d9609a7dde..2d9a9c50396071d59e961456bd29037af0a4bb64 100644 |
--- a/Source/core/rendering/svg/RenderSVGRoot.cpp |
+++ b/Source/core/rendering/svg/RenderSVGRoot.cpp |
@@ -300,6 +300,11 @@ void RenderSVGRoot::styleDidChange(StyleDifference diff, const RenderStyle* oldS |
SVGResourcesCache::clientStyleChanged(this, diff, style()); |
} |
+bool RenderSVGRoot::isChildAllowed(RenderObject* child, RenderStyle*) const |
+{ |
+ return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText()); |
+} |
+ |
void RenderSVGRoot::addChild(RenderObject* child, RenderObject* beforeChild) |
{ |
RenderReplaced::addChild(child, beforeChild); |