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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 714003002: Allow changing top controls height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some more fixes Created 6 years, 1 month 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: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index c005a1821614499203bbcdb488a40e4e595698c2..f7e6a100b75739bb659fdfb87b0e77c59ef3680c 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -96,7 +96,8 @@ LayerTreeImpl::LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl)
next_activation_forces_redraw_(false),
has_ever_been_drawn_(false),
render_surface_layer_list_id_(0),
- top_controls_layout_height_(0),
+ top_controls_shrink_blink_size_(false),
+ top_controls_height_(0),
top_controls_content_offset_(0),
top_controls_delta_(0),
sent_top_controls_delta_(0) {
@@ -209,7 +210,9 @@ void LayerTreeImpl::PushPropertiesTo(LayerTreeImpl* target_tree) {
target_tree->PassSwapPromises(&swap_promise_list_);
- target_tree->top_controls_layout_height_ = top_controls_layout_height_;
+ target_tree->top_controls_shrink_blink_size_ =
+ top_controls_shrink_blink_size_;
+ target_tree->top_controls_height_ = top_controls_height_;
target_tree->top_controls_content_offset_ = top_controls_content_offset_;
target_tree->top_controls_delta_ =
target_tree->top_controls_delta_ -

Powered by Google App Engine
This is Rietveld 408576698