DescriptionProperly initialize top controls content offset on LayerTreeHost.
https://codereview.chromium.org/511253003 added top control content offset
to LayerTreeHost and LayerTreeImpl but didn't sync the two properly on
startup, causing the top controls to hide on navigations. This patch makes
the initial value of the top controls such that the top controls are hidden
(and rely on the initial UpdateTopControlsState from the browser). At the
same time, it also changes LayerTreeImpl's offset to be the content offset,
rather than top controls offset, to match LayerTreeHost.
BUG=412918
Committed: https://crrev.com/55b2f1575955a6c7a55e09990361fb7bf0404565
Cr-Commit-Position: refs/heads/master@{#294824}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : LayerTreeHost top_offset -> content_offset #Patch Set 4 : Removed TopControlsManager::controls_top_offset_ #Patch Set 5 : Fixed up unit tests #
Messages
Total messages: 16 (4 generated)
|