Index: Source/core/svg/SVGLinearGradientElement.h |
diff --git a/Source/core/svg/SVGLinearGradientElement.h b/Source/core/svg/SVGLinearGradientElement.h |
index 7f5f5ebe6ab23266d142b90fcb2332cddd881599..758ee9cd2527896a000fa770178a0af13634f001 100644 |
--- a/Source/core/svg/SVGLinearGradientElement.h |
+++ b/Source/core/svg/SVGLinearGradientElement.h |
@@ -54,11 +54,7 @@ private: |
END_DECLARE_ANIMATED_PROPERTIES |
}; |
-inline SVGLinearGradientElement* toSVGLinearGradientElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::linearGradientTag)); |
- return static_cast<SVGLinearGradientElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(SVGLinearGradientElement, hasTagName(SVGNames::linearGradientTag)); |
} // namespace WebCore |