Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1915)

Unified Diff: Source/core/rendering/svg/RenderSVGInline.cpp

Issue 191003007: Use isSVG*Element() helpers more in SVG code (Part 3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « Source/core/rendering/svg/RenderSVGGradientStop.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698