| Index: third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/ImageDocument.cpp b/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| index d245ffb5f63c41a5cd6f1f18fa579c8e12c61f3d..c36c3e12535b18fbe91475b3a8c94fa04c61c808 100644
|
| --- a/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| +++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| @@ -293,7 +293,7 @@ void ImageDocument::imageClicked(int x, int y)
|
| } else {
|
| restoreImageSize(ScaleZoomedDocument);
|
|
|
| - updateLayout();
|
| + updateStyleAndLayout();
|
|
|
| double scale = this->scale();
|
|
|
| @@ -311,7 +311,7 @@ void ImageDocument::imageUpdated()
|
| if (m_imageSizeIsKnown)
|
| return;
|
|
|
| - updateLayoutTree();
|
| + updateStyleAndLayoutTree();
|
| if (!m_imageElement->cachedImage() || m_imageElement->cachedImage()->imageSize(LayoutObject::shouldRespectImageOrientation(m_imageElement->layoutObject()), pageZoomFactor(this)).isEmpty())
|
| return;
|
|
|
|
|