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

Unified Diff: Source/core/rendering/RenderReplaced.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/rendering/RenderMedia.cpp ('k') | Source/core/rendering/svg/RenderSVGImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderReplaced.cpp
diff --git a/Source/core/rendering/RenderReplaced.cpp b/Source/core/rendering/RenderReplaced.cpp
index be1d7331e57f6680a79f9b7e9407d34c631140d4..6a08109aa6d102234cb964efe2b8bfc36297cadc 100644
--- a/Source/core/rendering/RenderReplaced.cpp
+++ b/Source/core/rendering/RenderReplaced.cpp
@@ -26,9 +26,9 @@
#include "core/editing/PositionWithAffinity.h"
#include "core/layout/Layer.h"
+#include "core/layout/LayoutImage.h"
#include "core/paint/ReplacedPainter.h"
#include "core/rendering/RenderBlock.h"
-#include "core/rendering/RenderImage.h"
#include "core/rendering/RenderView.h"
#include "platform/LengthFunctions.h"
@@ -180,8 +180,8 @@ void RenderReplaced::computeAspectRatioInformationForRenderBox(RenderBox* conten
// Handle zoom & vertical writing modes here, as the embedded document doesn't know about them.
intrinsicSize.scale(style()->effectiveZoom());
- if (isRenderImage())
- intrinsicSize.scale(toRenderImage(this)->imageDevicePixelRatio());
+ if (isLayoutImage())
+ intrinsicSize.scale(toLayoutImage(this)->imageDevicePixelRatio());
// Update our intrinsic size to match what the content renderer has computed, so that when we
// constrain the size below, the correct intrinsic size will be obtained for comparison against
« no previous file with comments | « Source/core/rendering/RenderMedia.cpp ('k') | Source/core/rendering/svg/RenderSVGImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698