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 9705409c388c8ad938f5256111bbb4928a6bd27c..98362088b63ca1cfe7ebec6bcb8fe483d99a8c85 100644 |
--- a/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp |
+++ b/third_party/WebKit/Source/core/html/forms/ImageInputType.cpp |
@@ -205,7 +205,7 @@ unsigned ImageInputType::height() const |
// If the image is available, use its height. |
HTMLImageLoader* imageLoader = element->imageLoader(); |
if (imageLoader && imageLoader->image()) |
- return imageLoader->image()->imageSize(LayoutObject::shouldRespectImageOrientation(nullptr), 1).height(); |
+ return imageLoader->image()->defaultConcreteObjectSize(LayoutObject::shouldRespectImageOrientation(nullptr), 1).height(); |
} |
element->document().updateLayout(); |
@@ -227,7 +227,7 @@ unsigned ImageInputType::width() const |
// If the image is available, use its width. |
HTMLImageLoader* imageLoader = element->imageLoader(); |
if (imageLoader && imageLoader->image()) |
- return imageLoader->image()->imageSize(LayoutObject::shouldRespectImageOrientation(nullptr), 1).width(); |
+ return imageLoader->image()->defaultConcreteObjectSize(LayoutObject::shouldRespectImageOrientation(nullptr), 1).width(); |
} |
element->document().updateLayout(); |