Index: Source/core/html/HTMLTableRowElement.h |
diff --git a/Source/core/html/HTMLTableRowElement.h b/Source/core/html/HTMLTableRowElement.h |
index 0c1bff826c1ba19fbc11c234050ecdda11d3f162..948364259c4788c5eeec093e806d750f16cde2e7 100644 |
--- a/Source/core/html/HTMLTableRowElement.h |
+++ b/Source/core/html/HTMLTableRowElement.h |
@@ -58,11 +58,7 @@ inline bool isHTMLTableRowElement(const Node* node) |
return node->hasTagName(HTMLNames::trTag); |
} |
-inline HTMLTableRowElement* toHTMLTableRowElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTableRowElement(node)); |
- return static_cast<HTMLTableRowElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLTableRowElement, hasTagName(HTMLNames::trTag)); |
} // namespace |