Index: Source/core/rendering/svg/RenderSVGInline.cpp |
diff --git a/Source/core/rendering/svg/RenderSVGInline.cpp b/Source/core/rendering/svg/RenderSVGInline.cpp |
index b813b27d76ce4b23bd67343edf1add81db5ee774..48612306850aa62068dd4c80a1398eae0dccab33 100644 |
--- a/Source/core/rendering/svg/RenderSVGInline.cpp |
+++ b/Source/core/rendering/svg/RenderSVGInline.cpp |
@@ -28,6 +28,7 @@ |
#include "core/rendering/svg/SVGInlineFlowBox.h" |
#include "core/rendering/svg/SVGRenderSupport.h" |
#include "core/rendering/svg/SVGResourcesCache.h" |
+#include "core/svg/SVGAElement.h" |
namespace WebCore { |
@@ -36,9 +37,9 @@ bool RenderSVGInline::isChildAllowed(RenderObject* child, RenderStyle* style) co |
if (child->isText()) |
return SVGRenderSupport::isRenderableTextNode(child); |
- if (node()->hasTagName(SVGNames::aTag)) { |
+ if (isSVGAElement(*node())) { |
// Disallow direct descendant 'a'. |
- if (child->node()->hasTagName(SVGNames::aTag)) |
+ if (isSVGAElement(*child->node())) |
return false; |
} |