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

Unified Diff: ui/events/blink/input_handler_proxy.cc

Issue 2388563002: Clean up viewport scrolling methods in CC (Closed)
Patch Set: Fix tests Created 4 years, 3 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 | « cc/trees/layer_tree_host_impl.cc ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/input_handler_proxy.cc
diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc
index e2a2d3dbf525f63ef1234af00717d4fd81c0c7be..81b1d09911abf69a624d484dda6ed4121f5aea52 100644
--- a/ui/events/blink/input_handler_proxy.cc
+++ b/ui/events/blink/input_handler_proxy.cc
@@ -1040,7 +1040,7 @@ void InputHandlerProxy::ExtendBoostedFlingTimeout(
void InputHandlerProxy::Animate(base::TimeTicks time) {
// If using synchronous animate, then only expect Animate attempts started by
// the synchronous system. Don't let the InputHandler try to Animate also.
- DCHECK(!input_handler_->IsCurrentlyScrollingInnerViewport() ||
+ DCHECK(!input_handler_->IsCurrentlyScrollingViewport() ||
allow_root_animate_);
if (scroll_elasticity_controller_)
@@ -1245,7 +1245,7 @@ void InputHandlerProxy::RequestAnimation() {
// it to allow it to control when or if the root fling is animated. Non-root
// flings always go through the normal InputHandler.
if (synchronous_input_handler_ &&
- input_handler_->IsCurrentlyScrollingInnerViewport())
+ input_handler_->IsCurrentlyScrollingViewport())
synchronous_input_handler_->SetNeedsSynchronousAnimateInput();
else
input_handler_->SetNeedsAnimateInput();
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | ui/events/blink/input_handler_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698