| Index: Source/core/svg/SVGTextContentElement.h
|
| diff --git a/Source/core/svg/SVGTextContentElement.h b/Source/core/svg/SVGTextContentElement.h
|
| index 255330e8692839481f145cb3c6a4567dfefb06d0..db0b622d8b94d20a2541d8d1a26c4330edddeed8 100644
|
| --- a/Source/core/svg/SVGTextContentElement.h
|
| +++ b/Source/core/svg/SVGTextContentElement.h
|
| @@ -122,12 +122,13 @@ private:
|
| END_DECLARE_ANIMATED_PROPERTIES
|
| };
|
|
|
| -inline SVGTextContentElement* toSVGTextContentElement(SVGElement* element)
|
| +inline bool isSVGTextContentElement(const Node& node)
|
| {
|
| - ASSERT_WITH_SECURITY_IMPLICATION(!element || element->isTextContent());
|
| - return static_cast<SVGTextContentElement*>(element);
|
| + return node.isSVGElement() && toSVGElement(node).isTextContent();
|
| }
|
|
|
| +DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGTextContentElement);
|
| +
|
| } // namespace WebCore
|
|
|
| #endif
|
|
|