Index: Source/core/html/HTMLMapElement.h |
diff --git a/Source/core/html/HTMLMapElement.h b/Source/core/html/HTMLMapElement.h |
index dedcef2fcb986a0ac840132c19b0a87381e312b0..369de11549129dc2086eb45a7bec65bc753253f5 100644 |
--- a/Source/core/html/HTMLMapElement.h |
+++ b/Source/core/html/HTMLMapElement.h |
@@ -54,11 +54,7 @@ private: |
AtomicString m_name; |
}; |
-inline HTMLMapElement* toHTMLMapElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::mapTag)); |
- return static_cast<HTMLMapElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLMapElement, hasTagName(HTMLNames::mapTag)); |
} //namespace |