| Index: third_party/WebKit/Source/core/layout/LayoutImage.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
|
| index 66d430fc5f2c01cb9035563db75e05ecf8030dc7..d5c340de55a4910712edc687c6f42d7c54ba5126 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutImage.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
|
| @@ -300,7 +300,7 @@ void LayoutImage::computeIntrinsicSizingInfo(IntrinsicSizingInfo& intrinsicSizin
|
| // Don't compute an intrinsic ratio to preserve historical WebKit behavior if we're painting alt text and/or a broken image.
|
| // Video is excluded from this behavior because video elements have a default aspect ratio that a failed poster image load should not override.
|
| if (m_imageResource && m_imageResource->errorOccurred() && !isVideo()) {
|
| - intrinsicSizingInfo.aspectRatio = 1;
|
| + intrinsicSizingInfo.aspectRatio = FloatSize(1, 1);
|
| return;
|
| }
|
| }
|
|
|