Index: Source/core/html/HTMLOListElement.h |
diff --git a/Source/core/html/HTMLOListElement.h b/Source/core/html/HTMLOListElement.h |
index 130a7940a10ebadcd4e71d8fe2c51fd9eff0b042..d3dd1a2cdfbd076c13c3e15360305d08f8950026 100644 |
--- a/Source/core/html/HTMLOListElement.h |
+++ b/Source/core/html/HTMLOListElement.h |
@@ -65,11 +65,7 @@ private: |
bool m_shouldRecalculateItemCount : 1; |
}; |
-inline HTMLOListElement* toHTMLOListElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::olTag)); |
- return static_cast<HTMLOListElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLOListElement, hasTagName(HTMLNames::olTag)); |
} //namespace |