Index: Source/core/rendering/RenderReplaced.cpp |
diff --git a/Source/core/rendering/RenderReplaced.cpp b/Source/core/rendering/RenderReplaced.cpp |
index f5b2bc49bca8b127fbada899c2b26096c74d3f52..7d82e1737d53fcda31e3f66e4d1aa78e7c75e8e2 100644 |
--- a/Source/core/rendering/RenderReplaced.cpp |
+++ b/Source/core/rendering/RenderReplaced.cpp |
@@ -28,6 +28,7 @@ |
#include "core/platform/graphics/GraphicsContext.h" |
#include "core/rendering/LayoutRepainter.h" |
#include "core/rendering/RenderBlock.h" |
+#include "core/rendering/RenderImage.h" |
#include "core/rendering/RenderLayer.h" |
#include "core/rendering/RenderView.h" |
@@ -277,8 +278,11 @@ void RenderReplaced::computeAspectRatioInformationForRenderBox(RenderBox* conten |
ASSERT(!isPercentageIntrinsicSize); |
// Handle zoom & vertical writing modes here, as the embedded document doesn't know about them. |
- if (!isPercentageIntrinsicSize) |
+ if (!isPercentageIntrinsicSize) { |
intrinsicSize.scale(style()->effectiveZoom()); |
+ if (isRenderImage()) |
+ intrinsicSize.scale(toRenderImage(this)->imageDevicePixelRatio()); |
+ } |
if (rendererHasAspectRatio(this) && isPercentageIntrinsicSize) |
intrinsicRatio = 1; |