Index: Source/core/rendering/svg/RenderSVGInline.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGInline.cpp b/Source/core/rendering/svg/RenderSVGInline.cpp |
index a3045042311ca77758ce48b732d8e7b077fa8ada..64f6b4d66accd8193cc09e9e46557f9f35ff74c9 100644 |
--- a/Source/core/rendering/svg/RenderSVGInline.cpp |
+++ b/Source/core/rendering/svg/RenderSVGInline.cpp |
@@ -23,6 +23,7 @@ |
#include "core/rendering/svg/RenderSVGInline.h" |
+#include "SVGNames.h" |
#include "core/rendering/svg/RenderSVGText.h" |
#include "core/rendering/svg/SVGInlineFlowBox.h" |
#include "core/rendering/svg/SVGRenderSupport.h" |
@@ -35,6 +36,12 @@ bool RenderSVGInline::isChildAllowed(RenderObject* child, RenderStyle* style) co |
if (child->isText()) |
return SVGRenderSupport::isRenderableTextNode(child); |
+ if (node()->hasTagName(SVGNames::aTag)) { |
+ // Disallow direct descendant 'a'. |
+ if (child->node()->hasTagName(SVGNames::aTag)) |
+ return false; |
+ } |
+ |
if (!child->isSVGInline() && !child->isSVGInlineText()) |
return false; |