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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 1173053003: Remove ScrollableArea::notifyScrollPositionChanged and cleanup scroll animators. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + remove updateScrollbars from FrameView::setScrollPosition Created 5 years, 6 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
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/tests/PinchViewportTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 9159d76f62c574e3e1bb7e0542557a4d3359220a..f6135aa3edfec3684a2dd06c4574713f70bb83df 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -3365,7 +3365,7 @@ void WebViewImpl::resetScrollAndScaleState()
ScrollableArea* scrollableArea = frameView->layoutViewportScrollableArea();
if (scrollableArea->scrollPositionDouble() != DoublePoint::zero())
- scrollableArea->notifyScrollPositionChanged(DoublePoint::zero());
+ scrollableArea->setScrollPosition(DoublePoint::zero(), ProgrammaticScroll);
}
pageScaleConstraintsSet().setNeedsReset(true);
@@ -4233,7 +4233,7 @@ void WebViewImpl::applyViewportDeltas(
+ DoubleSize(layoutViewportDelta.width, layoutViewportDelta.height);
if (layoutViewport->scrollPositionDouble() != layoutViewportPosition) {
- layoutViewport->notifyScrollPositionChanged(layoutViewportPosition);
+ layoutViewport->setScrollPosition(layoutViewportPosition, CompositorScroll);
frameView->setWasScrolledByUser(true);
}
}
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/tests/PinchViewportTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698