CTTE: RenderMedia and RenderVideo are never anonymous.
[WebKit-https.git] / Source / WebCore / rendering / RenderMedia.cpp
index acd1adf..f49baa4 100644 (file)
 #if ENABLE(VIDEO)
 #include "RenderMedia.h"
 
-#include "HTMLMediaElement.h"
 #include "RenderFlowThread.h"
 #include "RenderView.h"
 #include <wtf/StackStats.h>
 
 namespace WebCore {
 
-RenderMedia::RenderMedia(HTMLMediaElement* video)
-    : RenderImage(video)
+RenderMedia::RenderMedia(HTMLMediaElement& element)
+    : RenderImage(&element)
 {
     setImageResource(RenderImageResource::create());
 }
 
-RenderMedia::RenderMedia(HTMLMediaElement* video, const IntSize& intrinsicSize)
-    : RenderImage(video)
+RenderMedia::RenderMedia(HTMLMediaElement& element, const IntSize& intrinsicSize)
+    : RenderImage(&element)
 {
     setImageResource(RenderImageResource::create());
     setIntrinsicSize(intrinsicSize);
@@ -52,11 +51,6 @@ RenderMedia::~RenderMedia()
 {
 }
 
-HTMLMediaElement* RenderMedia::mediaElement() const
-{ 
-    return toHTMLMediaElement(element()); 
-}
-
 void RenderMedia::layout()
 {
     StackStats::LayoutCheckPoint layoutCheckPoint;