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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 597393002: Make compositor initialize top controls to be shown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests Created 6 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 | « no previous file | cc/trees/layer_tree_host_impl_unittest.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 fe08825927b101acaa91ff6d03e2b1fab00f0c61..816fe7a07c3b204551fe357c1475fe577b4d93a4 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -284,6 +284,12 @@ LayerTreeHostImpl::LayerTreeHostImpl(
settings.top_controls_height,
settings.top_controls_show_threshold,
settings.top_controls_hide_threshold);
+
+ // TODO(bokan): This is a quick fix. The browser should lock the top
+ // controls to shown on creation but this appears not to work. Tracked
+ // in crbug.com/417680.
+ // Initialize with top controls showing.
+ SetControlsTopOffset(0.f);
}
}
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698