Index: Source/core/svg/SVGAltGlyphItemElement.cpp |
diff --git a/Source/core/svg/SVGAltGlyphItemElement.cpp b/Source/core/svg/SVGAltGlyphItemElement.cpp |
index 347233b692719a37c2f905df323893459cc4250e..22c4d959c6b2f870ee3bcf9d9b687bf3c7bcc53b 100644 |
--- a/Source/core/svg/SVGAltGlyphItemElement.cpp |
+++ b/Source/core/svg/SVGAltGlyphItemElement.cpp |
@@ -52,7 +52,7 @@ bool SVGAltGlyphItemElement::hasValidGlyphElements(Vector<String>& glyphNames) c |
for (Node* child = firstChild(); child; child = child->nextSibling()) { |
if (child->hasTagName(SVGNames::glyphRefTag)) { |
String referredGlyphName; |
- if (static_cast<SVGGlyphRefElement*>(child)->hasValidGlyphElement(referredGlyphName)) |
+ if (toSVGGlyphRefElement(child)->hasValidGlyphElement(referredGlyphName)) |
glyphNames.append(referredGlyphName); |
else { |
glyphNames.clear(); |