Index: Source/core/svg/SVGFontFaceElement.cpp |
diff --git a/Source/core/svg/SVGFontFaceElement.cpp b/Source/core/svg/SVGFontFaceElement.cpp |
index 034fe6c36c1d723ce720fc9d39849cebc7868af9..00a07308cb7579a0356f3d2c2e6917340f3d72c3 100644 |
--- a/Source/core/svg/SVGFontFaceElement.cpp |
+++ b/Source/core/svg/SVGFontFaceElement.cpp |
@@ -288,7 +288,7 @@ void SVGFontFaceElement::rebuildFontFace() |
RefPtr<CSSValueList> list; |
if (describesParentFont) { |
- m_fontElement = static_cast<SVGFontElement*>(parentNode()); |
+ m_fontElement = toSVGFontElement(parentNode()); |
list = CSSValueList::createCommaSeparated(); |
list->append(CSSFontFaceSrcValue::createLocal(fontFamily())); |