Index: Source/core/rendering/svg/RenderSVGText.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGText.cpp b/Source/core/rendering/svg/RenderSVGText.cpp |
index 5f2d22f5745e5ee2ee2f9ebb1a80dce46132f55c..de5e2007abf94e1409bc6be9002e7daf3a7aa330 100644 |
--- a/Source/core/rendering/svg/RenderSVGText.cpp |
+++ b/Source/core/rendering/svg/RenderSVGText.cpp |
@@ -70,7 +70,7 @@ RenderSVGText::~RenderSVGText() |
bool RenderSVGText::isChildAllowed(RenderObject* child, RenderStyle*) const |
{ |
- return child->isInline() && !SVGRenderSupport::isEmptySVGInlineText(child); |
+ return child->isSVGInline() || (child->isText() && !SVGRenderSupport::isEmptySVGInlineText(child)); |
} |
RenderSVGText* RenderSVGText::locateRenderSVGTextAncestor(RenderObject* start) |