Index: Source/core/svg/SVGGradientElement.h |
diff --git a/Source/core/svg/SVGGradientElement.h b/Source/core/svg/SVGGradientElement.h |
index 65f92d05aedfab8503c226a5d65075d34449bd04..fa520c0cb0a7633538a352e6de074f94b1104471 100644 |
--- a/Source/core/svg/SVGGradientElement.h |
+++ b/Source/core/svg/SVGGradientElement.h |
@@ -107,12 +107,13 @@ private: |
END_DECLARE_ANIMATED_PROPERTIES |
}; |
-inline SVGGradientElement* toSVGGradientElement(Node* node) |
+inline bool isSVGGradientElement(const Node& node) |
{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || (node->hasTagName(SVGNames::radialGradientTag) || node->hasTagName(SVGNames::linearGradientTag))); |
- return static_cast<SVGGradientElement*>(node); |
+ return node.hasTagName(SVGNames::radialGradientTag) || node.hasTagName(SVGNames::linearGradientTag); |
} |
+DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); |
+ |
} // namespace WebCore |
#endif |