Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(610)

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: Fix README.md Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
index 76e4c929fc4b3a9d5bd8f6edb154b336beccc286..25ba128fe5d0422417ce1dda6a2e268797f46263 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
@@ -450,8 +450,8 @@ bool ScrollingCoordinator::scrollableAreaScrollLayerDidChange(
WebLayer* containerLayer = toWebLayer(scrollableArea->layerForContainer());
if (webLayer) {
webLayer->setScrollClipLayer(containerLayer);
- DoublePoint scrollPosition(scrollableArea->scrollPositionDouble() +
- toDoubleSize(scrollableArea->scrollOrigin()));
+ DoublePoint scrollPosition(FloatPoint(scrollableArea->scrollOrigin()) +
+ scrollableArea->scrollOffset());
webLayer->setScrollPositionDouble(scrollPosition);
webLayer->setBounds(scrollableArea->contentsSize());

Powered by Google App Engine
This is Rietveld 408576698