Index: Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
diff --git a/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp b/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
index 67c9e7a4d17cade8f5cb452e32296b8dfad3a798..5fcb4996fd861c268d3a7af1f1f6e1d04b35cfde 100644 |
--- a/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
+++ b/Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp |
@@ -57,8 +57,7 @@ float SVGTextLayoutEngineSpacing::calculateSVGKerning(bool isVerticalText, Glyph |
ASSERT(fontData->isSVGFont()); |
RefPtr<CustomFontData> customFontData = fontData->customFontData(); |
- const SVGFontData* svgFontData = static_cast<const SVGFontData*>(customFontData.get()); |
- SVGFontFaceElement* svgFontFace = svgFontData->svgFontFaceElement(); |
+ SVGFontFaceElement* svgFontFace = toSVGFontData(customFontData)->svgFontFaceElement(); |
ASSERT(svgFontFace); |
SVGFontElement* svgFont = svgFontFace->associatedFontElement(); |