Index: Source/core/html/HTMLSelectElement.h |
diff --git a/Source/core/html/HTMLSelectElement.h b/Source/core/html/HTMLSelectElement.h |
index 65ab1d5a5dac86f4f931ae260e7a40283b60270b..bcfed462d59572ddbb782630656483eeee1a47ba 100644 |
--- a/Source/core/html/HTMLSelectElement.h |
+++ b/Source/core/html/HTMLSelectElement.h |
@@ -206,23 +206,12 @@ private: |
bool m_isParsingInProgress; |
}; |
-inline bool isHTMLSelectElement(const Node* node) |
-{ |
- return node->hasTagName(HTMLNames::selectTag); |
-} |
- |
inline HTMLSelectElement* toHTMLSelectElement(Node* node) |
{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLSelectElement(node)); |
+ ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::selectTag)); |
return static_cast<HTMLSelectElement*>(node); |
} |
-inline const HTMLSelectElement* toHTMLSelectElement(const Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLSelectElement(node)); |
- return static_cast<const HTMLSelectElement*>(node); |
-} |
- |
void toHTMLSelectElement(const HTMLSelectElement*); // This overload will catch anyone doing an unnecessary cast. |
} // namespace |