Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1033)

Unified Diff: Source/core/html/HTMLVideoElement.cpp

Issue 923953002: Move rendering/RenderImage* to layout/LayoutImage* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « Source/core/html/HTMLPlugInElement.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698