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 7d1d4cee7560ce481ea73dd952ecc8320c0b6c56..da160d03817e61d9157bc263b174fddce040cbfe 100644 |
--- a/third_party/WebKit/Source/core/html/ImageDocument.cpp |
+++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp |
@@ -298,13 +298,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); |
} |
} |