Index: Source/core/rendering/svg/SVGTextRunRenderingContext.cpp |
diff --git a/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp b/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp |
index b858cbd7014ae9a0071b0788bc6d5d11ace1df80..2fd85e157e7d9f60f8d18bb46056d108fde37498 100644 |
--- a/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp |
+++ b/Source/core/rendering/svg/SVGTextRunRenderingContext.cpp |
@@ -43,7 +43,7 @@ static inline const SVGFontData* svgFontAndFontFaceElementForFontData(const Simp |
ASSERT(fontData->isSVGFont()); |
RefPtr<CustomFontData> customFontData = fontData->customFontData(); |
- const SVGFontData* svgFontData = static_cast<const SVGFontData*>(customFontData.get()); |
+ const SVGFontData* svgFontData = toSVGFontData(customFontData); |
// FIXME crbug.com/359380 : The current editing impl references the font after the svg font nodes are removed. |
if (svgFontData->shouldSkipDrawing()) |