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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp

Issue 2387393003: Revert of Refactor ScrollableArea::setScrollPosition. (Closed)
Patch Set: 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/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp
index cdcd67ae22fcd6bc9ab4c1ce8fbe4604f50359b2..cbb3ddb9ca509b6c63da7f21edbdbf1a0d082bb1 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp
@@ -291,7 +291,8 @@
const DoublePoint& position,
ScrollType scrollType) {
// Subclasses should override this and adjust the animation as necessary.
- scrollPositionChanged(position, scrollType);
+ DoublePoint adjustedPos = getScrollableArea()->clampScrollPosition(position);
+ scrollPositionChanged(adjustedPos, scrollType);
}
void ScrollAnimatorCompositorCoordinator::adjustImplOnlyScrollOffsetAnimation(

Powered by Google App Engine
This is Rietveld 408576698