Chromium Code Reviews| 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..8c600daec2fdd530790bcf20a75895a0447ac01a 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(DoNotRespectImageOrientation, 1).height(); |
|
Yoav Weiss
2015/11/24 10:29:07
Again, I'm not sure this doesn't change behavior
davve
2015/11/24 12:49:13
See other reply.
|
| } |
| 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(DoNotRespectImageOrientation, 1).width(); |
|
Yoav Weiss
2015/11/24 10:29:07
ditto
davve
2015/11/24 12:49:13
See other reply.
|
| } |
| element->document().updateLayout(); |