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

Unified Diff: Source/core/html/forms/ImageInputType.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
Index: Source/core/html/forms/ImageInputType.cpp
diff --git a/Source/core/html/forms/ImageInputType.cpp b/Source/core/html/forms/ImageInputType.cpp
index d4352d9bf951f13d597e6725657a301de60d9c2b..aa09d9ece24aefbc84f7ef709459cfbfbd3752e1 100644
--- a/Source/core/html/forms/ImageInputType.cpp
+++ b/Source/core/html/forms/ImageInputType.cpp
@@ -34,8 +34,8 @@
#include "core/html/HTMLImageLoader.h"
#include "core/html/HTMLInputElement.h"
#include "core/html/parser/HTMLParserIdioms.h"
+#include "core/layout/LayoutImage.h"
#include "core/rendering/RenderBlockFlow.h"
-#include "core/rendering/RenderImage.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/StringBuilder.h"
@@ -125,8 +125,8 @@ LayoutObject* ImageInputType::createRenderer(const LayoutStyle& style) const
{
if (m_useFallbackContent)
return new RenderBlockFlow(&element());
- RenderImage* image = new RenderImage(&element());
- image->setImageResource(RenderImageResource::create());
+ LayoutImage* image = new LayoutImage(&element());
+ image->setImageResource(LayoutImageResource::create());
return image;
}
@@ -162,10 +162,10 @@ void ImageInputType::startResourceLoading()
imageLoader.updateFromElement();
LayoutObject* renderer = element().renderer();
- if (!renderer || !renderer->isRenderImage())
+ if (!renderer || !renderer->isLayoutImage())
return;
- RenderImageResource* imageResource = toRenderImage(renderer)->imageResource();
+ LayoutImageResource* imageResource = toLayoutImage(renderer)->imageResource();
imageResource->setImageResource(imageLoader.image());
}
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/inspector/InspectorInstrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698