| 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 c2b1cf0c0a6ee0cb47c1d96d688fd866d990ebd3..23ef102c3b40cc58805bdf982d1ed6d89cb9f5aa 100644
|
| --- a/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| +++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| @@ -262,7 +262,7 @@ float ImageDocument::scale() const
|
|
|
| // We want to pretend the viewport is larger when the user has zoomed the
|
| // page in (but not when the zoom is coming from device scale).
|
| - const float manualZoom = zoom / view->getHostWindow()->windowToViewportScalar(1.f);
|
| + const float manualZoom = zoom / view->getHostWindow()->windowToViewportScalar(*frame()->view(), 1.f);
|
| float widthScale = view->width() * manualZoom / imageSize.width().toFloat();
|
| float heightScale = view->height() * manualZoom / imageSize.height().toFloat();
|
|
|
|
|