Index: Source/core/svg/SVGFontElement.h |
diff --git a/Source/core/svg/SVGFontElement.h b/Source/core/svg/SVGFontElement.h |
index fefa0a543fd7be0b775aef4e48c3bd628e2130c5..2ac4d45d85dacb77e9a55a56c9425d34f2fdb948 100644 |
--- a/Source/core/svg/SVGFontElement.h |
+++ b/Source/core/svg/SVGFontElement.h |
@@ -89,11 +89,7 @@ private: |
bool m_isGlyphCacheValid; |
}; |
-inline SVGFontElement* toSVGFontElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::fontTag)); |
- return static_cast<SVGFontElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(SVGFontElement, hasTagName(SVGNames::fontTag)); |
} // namespace WebCore |