Index: Source/core/html/HTMLVideoElement.h |
diff --git a/Source/core/html/HTMLVideoElement.h b/Source/core/html/HTMLVideoElement.h |
index f83915205cefc16dd3e73bbadc92d195aafa08d0..52e1f5ebbfe9555f8467f2569a38c2374a264a6f 100644 |
--- a/Source/core/html/HTMLVideoElement.h |
+++ b/Source/core/html/HTMLVideoElement.h |
@@ -100,11 +100,7 @@ inline bool isHTMLVideoElement(const Element* element) |
return element->hasTagName(HTMLNames::videoTag); |
} |
-inline HTMLVideoElement* toHTMLVideoElement(Node* node) |
-{ |
- ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLVideoElement(node)); |
- return static_cast<HTMLVideoElement*>(node); |
-} |
+DEFINE_NODE_TYPE_CASTS(HTMLVideoElement, hasTagName(HTMLNames::videoTag)); |
} //namespace |