Index: third_party/WebKit/Source/core/html/forms/ImageInputType.cpp |
diff --git a/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp b/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp |
index f7dc76e5507b1d587f5ecfa6f3871c83777a837a..a1286c18110267a826277a3c7536851a3612a9f5 100644 |
--- a/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp |
+++ b/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp |
@@ -206,7 +206,7 @@ unsigned ImageInputType::height() const |
// If the image is available, use its height. |
HTMLImageLoader* imageLoader = element->imageLoader(); |
if (imageLoader && imageLoader->image()) |
- return imageLoader->image()->imageSizeForLayoutObject(element->layoutObject(), 1).height(); |
+ return imageLoader->image()->imageSize(LayoutObject::shouldRespectImageOrientation(nullptr), 1).height(); |
} |
element->document().updateLayout(); |
@@ -228,7 +228,7 @@ unsigned ImageInputType::width() const |
// If the image is available, use its width. |
HTMLImageLoader* imageLoader = element->imageLoader(); |
if (imageLoader && imageLoader->image()) |
- return imageLoader->image()->imageSizeForLayoutObject(element->layoutObject(), 1).width(); |
+ return imageLoader->image()->imageSize(LayoutObject::shouldRespectImageOrientation(nullptr), 1).width(); |
} |
element->document().updateLayout(); |