Index: Source/core/html/HTMLVideoElement.cpp |
diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp |
index 9ae9b30c7554d1f63839f954db39e6e44e0c4ba2..2a307f10ea9b0a4b6507e915275920f12031fa10 100644 |
--- a/Source/core/html/HTMLVideoElement.cpp |
+++ b/Source/core/html/HTMLVideoElement.cpp |
@@ -37,8 +37,8 @@ |
#include "core/html/HTMLImageLoader.h" |
#include "core/html/canvas/CanvasRenderingContext.h" |
#include "core/html/parser/HTMLParserIdioms.h" |
+#include "core/layout/LayoutImage.h" |
#include "core/layout/LayoutVideo.h" |
-#include "core/rendering/RenderImage.h" |
#include "platform/UserGestureIndicator.h" |
#include "platform/graphics/GraphicsContext.h" |
#include "platform/graphics/ImageBuffer.h" |
@@ -91,7 +91,7 @@ void HTMLVideoElement::attach(const AttachContext& context) |
m_imageLoader = HTMLImageLoader::create(this); |
m_imageLoader->updateFromElement(); |
if (renderer()) |
- toRenderImage(renderer())->imageResource()->setImageResource(m_imageLoader->image()); |
+ toLayoutImage(renderer())->imageResource()->setImageResource(m_imageLoader->image()); |
} |
} |
@@ -124,7 +124,7 @@ void HTMLVideoElement::parseAttribute(const QualifiedName& name, const AtomicStr |
m_imageLoader->updateFromElement(ImageLoader::UpdateIgnorePreviousError); |
} else { |
if (renderer()) |
- toRenderImage(renderer())->imageResource()->setImageResource(0); |
+ toLayoutImage(renderer())->imageResource()->setImageResource(0); |
} |
// Notify the player when the poster image URL changes. |
if (webMediaPlayer()) |