Index: Source/core/rendering/svg/RenderSVGInline.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGInline.cpp b/Source/core/rendering/svg/RenderSVGInline.cpp |
index 68b1a4029cd0b01518f49acdb7d7d0d6460b8192..6707906d526aef2cdee9e5ff1d97fcdabd4e6a78 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,11 @@ bool RenderSVGInline::isChildAllowed(RenderObject* child, RenderStyle* style) co |
if (SVGRenderSupport::isEmptySVGInlineText(child)) |
return false; |
+ if (node()->hasTagName(SVGNames::aTag)) { |
+ // Disallow direct descendant 'a'. |
+ if (child->node()->hasTagName(SVGNames::aTag)) |
+ return false; |
+ } |
return RenderInline::isChildAllowed(child, style); |
} |