Index: Source/core/rendering/RenderVideo.cpp |
diff --git a/Source/core/rendering/RenderVideo.cpp b/Source/core/rendering/RenderVideo.cpp |
index 61ce56c3c22770b593099c961ba82aca9e06ef59..6c604cf5f953b134dd5b54bad6e7c24c2363352b 100644 |
--- a/Source/core/rendering/RenderVideo.cpp |
+++ b/Source/core/rendering/RenderVideo.cpp |
@@ -216,11 +216,11 @@ void RenderVideo::layout() |
RenderMedia::layout(); |
updatePlayer(); |
} |
- |
+ |
HTMLVideoElement* RenderVideo::videoElement() const |
{ |
- ASSERT(node()->hasTagName(videoTag)); |
- return static_cast<HTMLVideoElement*>(node()); |
+ ASSERT(isHTMLVideoElement(node())); |
+ return toHTMLVideoElement(node()); |
} |
void RenderVideo::updateFromElement() |