Index: Source/core/html/HTMLProgressElement.h |
diff --git a/Source/core/html/HTMLProgressElement.h b/Source/core/html/HTMLProgressElement.h |
index e9f624e4342f8b638b661ca50a7472c23898058e..abb82aa5a8808f9e8fc362cbff63d84f650e6fd4 100644 |
--- a/Source/core/html/HTMLProgressElement.h |
+++ b/Source/core/html/HTMLProgressElement.h |
@@ -74,11 +74,7 @@ inline bool isHTMLProgressElement(Node* node) |
return node->hasTagName(HTMLNames::progressTag); |
} |
-inline HTMLProgressElement* toHTMLProgressElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLProgressElement(node)); |
- return static_cast<HTMLProgressElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLProgressElement, hasTagName(HTMLNames::progressTag)); |
} // namespace |