Index: Source/core/svg/SVGGlyphRefElement.h |
diff --git a/Source/core/svg/SVGGlyphRefElement.h b/Source/core/svg/SVGGlyphRefElement.h |
index 21a2e4ff5d389aa565f95239697cdf0e0c74feda..9afe97dd033544f24c3fbcf7a2e4b6727661443a 100644 |
--- a/Source/core/svg/SVGGlyphRefElement.h |
+++ b/Source/core/svg/SVGGlyphRefElement.h |
@@ -65,11 +65,7 @@ private: |
float m_dy; |
}; |
-inline SVGGlyphRefElement* toSVGGlyphRefElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::glyphRefTag)); |
- return static_cast<SVGGlyphRefElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(SVGGlyphRefElement, hasTagName(SVGNames::glyphRefTag)); |
} |