Index: Source/core/svg/SVGAltGlyphDefElement.cpp |
diff --git a/Source/core/svg/SVGAltGlyphDefElement.cpp b/Source/core/svg/SVGAltGlyphDefElement.cpp |
index b6320872f21d7768130fefd11d8441520079ae3c..d99b1656aac38f7f94640a86d249e4e034477b10 100644 |
--- a/Source/core/svg/SVGAltGlyphDefElement.cpp |
+++ b/Source/core/svg/SVGAltGlyphDefElement.cpp |
@@ -94,7 +94,7 @@ bool SVGAltGlyphDefElement::hasValidGlyphElements(Vector<String>& glyphNames) co |
fountFirstGlyphRef = true; |
String referredGlyphName; |
- if (static_cast<SVGGlyphRefElement*>(child)->hasValidGlyphElement(referredGlyphName)) |
+ if (toSVGGlyphRefElement(child)->hasValidGlyphElement(referredGlyphName)) |
glyphNames.append(referredGlyphName); |
else { |
// As the spec says "If any of the referenced glyphs are unavailable, |