Index: Source/core/html/HTMLLegendElement.h |
diff --git a/Source/core/html/HTMLLegendElement.h b/Source/core/html/HTMLLegendElement.h |
index 4ee68b2433d321259c33119126122fdc10639a48..dded0f76a61b0757a5cbae7e0d3acb19c384bc45 100644 |
--- a/Source/core/html/HTMLLegendElement.h |
+++ b/Source/core/html/HTMLLegendElement.h |
@@ -45,11 +45,7 @@ private: |
virtual HTMLFormElement* virtualForm() const OVERRIDE; |
}; |
-inline HTMLLegendElement* toHTMLLegendElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::legendTag)); |
- return static_cast<HTMLLegendElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLLegendElement, hasTagName(HTMLNames::legendTag)); |
} //namespace |