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

Unified Diff: Source/core/rendering/svg/RenderSVGTSpan.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/RenderSVGTSpan.cpp
diff --git a/Source/core/rendering/svg/RenderSVGTSpan.cpp b/Source/core/rendering/svg/RenderSVGTSpan.cpp
index 9c71d5416842354b83b58a94ec31ffd235424ab2..b7bec1df07f59d95f9b24063d07273d1153783bc 100644
--- a/Source/core/rendering/svg/RenderSVGTSpan.cpp
+++ b/Source/core/rendering/svg/RenderSVGTSpan.cpp
@@ -26,6 +26,7 @@
#include "SVGNames.h"
#include "core/rendering/svg/SVGRenderSupport.h"
+#include "core/svg/SVGAltGlyphElement.h"
namespace WebCore {
@@ -42,7 +43,8 @@ bool RenderSVGTSpan::isChildAllowed(RenderObject* child, RenderStyle*) const
#if ENABLE(SVG_FONTS)
// Only allow other types of children if this is not an 'altGlyph'.
- if (node()->hasTagName(SVGNames::altGlyphTag))
+ ASSERT(node());
+ if (isSVGAltGlyphElement(*node()))
return false;
#endif
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceMasker.cpp ('k') | Source/core/rendering/svg/RenderSVGTextPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698