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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2479663002: Move compositor InputHandler from RenderViewImpl to RenderWidget. (Closed)
Patch Set: Rebase to master@{#445291}. Created 3 years, 11 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 | « no previous file | chrome/browser/site_per_process_interactive_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index e87b0daab8714ee640271fab39c6937d412ec932..915f7ea72f25aaea11529420ca982b2b29ed0de3 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -3002,6 +3002,7 @@ void LayerTreeHostImpl::ApplyScroll(ScrollNode* scroll_node,
// we want to scroll the inner viewport -- to allow panning while zoomed --
// but also move browser controls if needed.
bool is_inner_viewport_scroll_layer =
+ InnerViewportScrollLayer() &&
scroll_node->owning_layer_id == InnerViewportScrollLayer()->id();
if (is_viewport_scroll_layer || is_inner_viewport_scroll_layer) {
« no previous file with comments | « no previous file | chrome/browser/site_per_process_interactive_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698