Index: Source/core/html/HTMLMediaElement.h |
diff --git a/Source/core/html/HTMLMediaElement.h b/Source/core/html/HTMLMediaElement.h |
index 65d5f0b06a6905c26c03748ddf07f1e86d94d87d..df5b8bf3d60998cc3f4f5c2b9b1b59d874a860c5 100644 |
--- a/Source/core/html/HTMLMediaElement.h |
+++ b/Source/core/html/HTMLMediaElement.h |
@@ -540,17 +540,17 @@ struct ValueToString<TextTrackCue*> { |
}; |
#endif |
-inline bool isHTMLMediaElement(const Node& node) |
+inline bool isHTMLMediaElement(const Element& element) |
{ |
- return isHTMLAudioElement(node) || isHTMLVideoElement(node); |
+ return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
} |
-inline bool isHTMLMediaElement(const Node* node) |
+inline bool isHTMLMediaElement(const HTMLElement& element) |
{ |
- return node && isHTMLMediaElement(*node); |
+ return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
} |
-DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
+DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
} //namespace |