| Index: Source/core/svg/SVGPolyElement.h
|
| diff --git a/Source/core/svg/SVGPolyElement.h b/Source/core/svg/SVGPolyElement.h
|
| index ed906d0c960709f180680552fb1e686abaf050f2..4cc460158dfc1e6a97f6d8aad047385024c4818f 100644
|
| --- a/Source/core/svg/SVGPolyElement.h
|
| +++ b/Source/core/svg/SVGPolyElement.h
|
| @@ -64,12 +64,13 @@ private:
|
| END_DECLARE_ANIMATED_PROPERTIES
|
| };
|
|
|
| -inline SVGPolyElement* toSVGPolyElement(SVGElement* element)
|
| +inline bool isSVGPolyElement(const Node& node)
|
| {
|
| - ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::polygonTag) || element->hasTagName(SVGNames::polylineTag));
|
| - return static_cast<SVGPolyElement*>(element);
|
| + return node.hasTagName(SVGNames::polygonTag) || node.hasTagName(SVGNames::polylineTag);
|
| }
|
|
|
| +DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGPolyElement);
|
| +
|
| } // namespace WebCore
|
|
|
| #endif
|
|
|