Index: Source/core/svg/SVGGraphicsElement.h |
diff --git a/Source/core/svg/SVGGraphicsElement.h b/Source/core/svg/SVGGraphicsElement.h |
index 319033496f5e5543bac763b7dc43580dcad2fac4..6bc8830c32f3359ff0b9c98b0f95621ad43291f3 100644 |
--- a/Source/core/svg/SVGGraphicsElement.h |
+++ b/Source/core/svg/SVGGraphicsElement.h |
@@ -76,13 +76,13 @@ private: |
OwnPtr<AffineTransform> m_supplementalTransform; |
}; |
-inline SVGGraphicsElement* toSVGGraphicsElement(Node* node) |
+inline bool isSVGGraphicsElement(const Node& node) |
{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGGraphicsElement()); |
- return static_cast<SVGGraphicsElement*>(node); |
+ return node.isSVGElement() && toSVGElement(node).isSVGGraphicsElement(); |
} |
+DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); |
+ |
} // namespace WebCore |
#endif // SVGGraphicsElement_h |