Index: third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
index 5b7fa06f9e153dc2950adc86ffbc42dbd6a92242..9aa8a69a1a605fa5e79d02b6995e8b8f66687d46 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
@@ -646,7 +646,7 @@ FloatSize HTMLImageElement::defaultDestinationSize() const |
return FloatSize(); |
LayoutSize size; |
size = image->imageSize(LayoutObject::shouldRespectImageOrientation(layoutObject()), 1.0f); |
- if (layoutObject() && layoutObject()->isLayoutImage() && image->image() && !image->image()->hasRelativeWidth()) |
+ if (layoutObject() && layoutObject()->isLayoutImage() && image->image() && !image->image()->hasRelativeSize()) |
size.scale(toLayoutImage(layoutObject())->imageDevicePixelRatio()); |
return FloatSize(size); |
} |