Chromium Code Reviews| Index: third_party/WebKit/Source/core/style/StyleFetchedImage.cpp |
| diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp |
| index 099b40708f59cff71ce307a075b4dd88ec86cb15..7944156420369eda85f13b33cf3be5e0f85a57f4 100644 |
| --- a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp |
| +++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp |
| @@ -83,7 +83,9 @@ bool StyleFetchedImage::errorOccurred() const |
| LayoutSize StyleFetchedImage::imageSize(const LayoutObject* layoutObject, float multiplier) const |
| { |
| - return m_image->imageSizeForLayoutObject(layoutObject, multiplier); |
| + RespectImageOrientationEnum shouldRespectImageOrientation = |
| + layoutObject ? layoutObject->shouldRespectImageOrientation() : DoNotRespectImageOrientation; |
| + return m_image->imageSize(shouldRespectImageOrientation, multiplier); |
|
Yoav Weiss
2015/11/24 10:29:07
Here too, no need to repeat the same logic
davve
2015/11/24 12:49:13
If I had such a function, yes. (again)
|
| } |
| bool StyleFetchedImage::imageHasRelativeWidth() const |