Index: cc/trees/layer_tree_host.cc |
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc |
index 315c5b8afac40076cbffd1a28952c9bf995caf0c..6fd8063416e0da1828db4b89b1230d7e6e10ed7f 100644 |
--- a/cc/trees/layer_tree_host.cc |
+++ b/cc/trees/layer_tree_host.cc |
@@ -516,6 +516,7 @@ void LayerTreeHost::FinishCommitOnImplThread(LayerTreeHostImpl* host_impl) { |
sync_tree->set_top_controls_shrink_blink_size( |
top_controls_shrink_blink_size_); |
sync_tree->set_top_controls_height(top_controls_height_); |
+ sync_tree->set_bottom_controls_height(bottom_controls_height_); |
sync_tree->PushTopControlsFromMainThread(top_controls_shown_ratio_); |
host_impl->SetHasGpuRasterizationTrigger(has_gpu_rasterization_trigger_); |
@@ -831,6 +832,14 @@ void LayerTreeHost::SetTopControlsShownRatio(float ratio) { |
SetNeedsCommit(); |
} |
+void LayerTreeHost::setBottomControlHeight(float height) { |
+ if (bottom_controls_height_ == height) |
+ return; |
+ |
+ bottom_controls_height_ = height; |
+ SetNeedsCommit(); |
+} |
+ |
void LayerTreeHost::ApplyPageScaleDeltaFromImplSide(float page_scale_delta) { |
DCHECK(CommitRequested()); |
if (page_scale_delta == 1.f) |