| 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
|
|
|
|
|