| 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 d583a3dfd1a8f60efc3e554609c60b3e95f3d429..fbd45ecc7f12271702235af0f334d11ac0a1cc19 100644
|
| --- a/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| +++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| @@ -300,13 +300,13 @@ void ImageDocument::imageClicked(int x, int y) {
|
|
|
| double scale = this->scale();
|
|
|
| - double scrollX =
|
| - x / scale - static_cast<double>(frame()->view()->width()) / 2;
|
| - double scrollY =
|
| - y / scale - static_cast<double>(frame()->view()->height()) / 2;
|
| + float scrollX =
|
| + x / scale - static_cast<float>(frame()->view()->width()) / 2;
|
| + float scrollY =
|
| + y / scale - static_cast<float>(frame()->view()->height()) / 2;
|
|
|
| - frame()->view()->setScrollPosition(DoublePoint(scrollX, scrollY),
|
| - ProgrammaticScroll);
|
| + frame()->view()->setScrollOffset(ScrollOffset(scrollX, scrollY),
|
| + ProgrammaticScroll);
|
| }
|
| }
|
|
|
|
|