Index: Source/core/html/HTMLSelectElement.h |
diff --git a/Source/core/html/HTMLSelectElement.h b/Source/core/html/HTMLSelectElement.h |
index 83b20621f359e3343746cb98c4c14b2e94701dd7..6670342d74e6aaf50f452ebfcbaaa34c30e1cfcf 100644 |
--- a/Source/core/html/HTMLSelectElement.h |
+++ b/Source/core/html/HTMLSelectElement.h |
@@ -211,13 +211,7 @@ private: |
bool m_isParsingInProgress; |
}; |
-inline HTMLSelectElement* toHTMLSelectElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::selectTag)); |
- return static_cast<HTMLSelectElement*>(node); |
-} |
- |
-void toHTMLSelectElement(const HTMLSelectElement*); // This overload will catch anyone doing an unnecessary cast. |
+DEFINE_NODE_TYPE_CASTS(HTMLSelectElement, hasTagName(HTMLNames::selectTag)); |
} // namespace |