Index: Source/core/svg/SVGRadialGradientElement.h |
diff --git a/Source/core/svg/SVGRadialGradientElement.h b/Source/core/svg/SVGRadialGradientElement.h |
index 4b7c376a3ac6a2f9c7572631588d4a308800c774..5ea11759e455c009ea4b78eb4b8ec73b6a1dd418 100644 |
--- a/Source/core/svg/SVGRadialGradientElement.h |
+++ b/Source/core/svg/SVGRadialGradientElement.h |
@@ -56,11 +56,7 @@ private: |
END_DECLARE_ANIMATED_PROPERTIES |
}; |
-inline SVGRadialGradientElement* toSVGRadialGradientElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::radialGradientTag)); |
- return static_cast<SVGRadialGradientElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(SVGRadialGradientElement, hasTagName(SVGNames::radialGradientTag)); |
} // namespace WebCore |