| 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 8ef3867c640b6224e4e1232708fecc1d6fe97288..acc6261fb27a008df3f84246690996797f92b924 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;
|
|
|
|
|