Index: Source/core/svg/SVGFontFaceElement.h |
diff --git a/Source/core/svg/SVGFontFaceElement.h b/Source/core/svg/SVGFontFaceElement.h |
index 5e77bd7a176c38ea9c141129de7100f478c6f191..e671ff4b23d726a0b854b5b8d6edbbea182a4192 100644 |
--- a/Source/core/svg/SVGFontFaceElement.h |
+++ b/Source/core/svg/SVGFontFaceElement.h |
@@ -67,11 +67,7 @@ private: |
SVGFontElement* m_fontElement; |
}; |
-inline SVGFontFaceElement* toSVGFontFaceElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::font_faceTag)); |
- return static_cast<SVGFontFaceElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(SVGFontFaceElement, hasTagName(SVGNames::font_faceTag)); |
} // namespace WebCore |