| 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 0d312fce026acad9721e83db6b9086adecc1cc84..d51109ac339b4f337bdddb93890e3d954063525e 100644
|
| --- a/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| +++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| @@ -294,7 +294,7 @@ void ImageDocument::imageClicked(int x, int y)
|
| } else {
|
| restoreImageSize(ScaleZoomedDocument);
|
|
|
| - updateLayout();
|
| + updateStyleAndLayout();
|
|
|
| double scale = this->scale();
|
|
|
| @@ -312,7 +312,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;
|
|
|
|
|