Index: Source/core/html/HTMLAreaElement.h |
diff --git a/Source/core/html/HTMLAreaElement.h b/Source/core/html/HTMLAreaElement.h |
index b5f22211e0974577f9a6860790f53f669e4f9fa2..67c7a58094e1c2636f3c19efb3fcc41a96cf5195 100644 |
--- a/Source/core/html/HTMLAreaElement.h |
+++ b/Source/core/html/HTMLAreaElement.h |
@@ -78,11 +78,7 @@ inline bool isHTMLAreaElement(const Element* element) |
return element->hasTagName(HTMLNames::areaTag); |
} |
-inline HTMLAreaElement* toHTMLAreaElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLAreaElement(node)); |
- return static_cast<HTMLAreaElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLAreaElement, hasTagName(HTMLNames::areaTag)); |
} //namespace |