Index: third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp b/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
index e19a029d4c8d6fe5c6497ebf49887f9cd0e3639c..cf06961edd7342071b3242cffe39d9fc09d028e2 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
@@ -94,7 +94,7 @@ LayoutSize LayoutImageResource::imageSize(float multiplier) const |
{ |
if (!m_cachedImage) |
return LayoutSize(); |
- LayoutSize size = m_cachedImage->imageSizeForLayoutObject(m_layoutObject, multiplier); |
+ LayoutSize size = m_cachedImage->imageSize(LayoutObject::shouldRespectImageOrientation(m_layoutObject), multiplier); |
if (m_layoutObject && m_layoutObject->isLayoutImage() && size.width() && size.height()) |
size.scale(toLayoutImage(m_layoutObject)->imageDevicePixelRatio()); |
return size; |