Index: Source/core/html/HTMLTextAreaElement.h |
diff --git a/Source/core/html/HTMLTextAreaElement.h b/Source/core/html/HTMLTextAreaElement.h |
index ecbdf1e12a4c14e83682c3204ae76ca92a1ae4f8..983cc01bf34f60e97c1857cf345b30a30c301b1d 100644 |
--- a/Source/core/html/HTMLTextAreaElement.h |
+++ b/Source/core/html/HTMLTextAreaElement.h |
@@ -139,11 +139,7 @@ inline bool isHTMLTextAreaElement(const Element* element) |
return element->hasTagName(HTMLNames::textareaTag); |
} |
-inline HTMLTextAreaElement* toHTMLTextAreaElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTextAreaElement(node)); |
- return static_cast<HTMLTextAreaElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLTextAreaElement, hasTagName(HTMLNames::textareaTag)); |
} //namespace |