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

Issue 565673003: Properly initialize top controls content offset on LayerTreeHost. (Closed)

Created:
6 years, 3 months ago by bokan
Modified:
6 years, 3 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, Ted C
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Properly 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -41 lines) Patch
M cc/input/top_controls_manager.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 1 chunk +3 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 5 chunks +13 lines, -13 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 8 chunks +18 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 4 chunks +7 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
bokan
PTAL
6 years, 3 months ago (2014-09-11 16:00:20 UTC) #2
aelias_OOO_until_Jul13
Hmm, but this leaves Blink's value still thinking it's 0, which will cause more subtle ...
6 years, 3 months ago (2014-09-11 16:30:17 UTC) #3
bokan
On 2014/09/11 16:30:17, aelias wrote: > Hmm, but this leaves Blink's value still thinking it's ...
6 years, 3 months ago (2014-09-11 18:23:34 UTC) #4
aelias_OOO_until_Jul13
OK, now I'm getting confused. Your first patch sets the LTH offset to max top_content_offset ...
6 years, 3 months ago (2014-09-11 23:05:54 UTC) #5
aelias_OOO_until_Jul13
OK, I figured it out. In LTH you're storing the content offset and in LTI ...
6 years, 3 months ago (2014-09-11 23:10:37 UTC) #6
bokan
On 2014/09/11 23:10:37, aelias wrote: > OK, I figured it out. In LTH you're storing ...
6 years, 3 months ago (2014-09-12 18:22:08 UTC) #7
aelias_OOO_until_Jul13
lgtm Please also delete the unused field TopControlsManager::controls_top_offset_ while you're at it, and update the ...
6 years, 3 months ago (2014-09-12 18:28:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/565673003/60001
6 years, 3 months ago (2014-09-12 21:31:33 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/4303) linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/15178) win8_chromium_rel ...
6 years, 3 months ago (2014-09-12 21:53:19 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/565673003/80001
6 years, 3 months ago (2014-09-15 13:45:06 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001) as f8313d69aea8cabc1eaf1ddef6f524fee6d8c6db
6 years, 3 months ago (2014-09-15 14:49:45 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 15:08:40 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/55b2f1575955a6c7a55e09990361fb7bf0404565
Cr-Commit-Position: refs/heads/master@{#294824}

Powered by Google App Engine
This is Rietveld 408576698