Index: Source/core/html/HTMLDialogElement.h |
diff --git a/Source/core/html/HTMLDialogElement.h b/Source/core/html/HTMLDialogElement.h |
index 521dc79f8ceba08ab4b02963044d7aa930369009..6c635a21a26246159c3638f346c91050d36c93b7 100644 |
--- a/Source/core/html/HTMLDialogElement.h |
+++ b/Source/core/html/HTMLDialogElement.h |
@@ -61,11 +61,7 @@ private: |
String m_returnValue; |
}; |
-inline HTMLDialogElement* toHTMLDialogElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::dialogTag)); |
- return static_cast<HTMLDialogElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLDialogElement, hasTagName(HTMLNames::dialogTag)); |
} // namespace WebCore |