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

Issue 2149033002: Update scroll layers' bounds_delta earlier during tree activation. (Closed)

Created:
4 years, 5 months ago by bokan
Modified:
4 years, 5 months ago
Reviewers:
ajuma, weiliangc
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update scroll layers' bounds_delta earlier during tree activation. When a tree activation occurs, we must update the property trees' bounds deltas so that they get propagated across the trees. This was previously done in LayerTreeHostImpl::ActivateSyncTree() and needs to happen before updateViewportContainerSizes() is called, otherwise it will clamp scroll offsets incorrectly becaues the bounds_deltas haven't been propagated yet. However, this bug occurs because earlier in ActivateSyncTree(), in LayerTreeImpl::PushPropertiesTo, we may change the top controls values when PushTopControls is called and causes a change. This indirectly causes UpdateViewportContainerSizes to be called which we must do after updating the bounds deltas. This CL moves the update to happen inside LayerTreeImpl::PushPropertiesTo near the beginning. I've rewritten the ViewportBoundsDeltaOnTreeActivation test to catch this. It was written to catch basically the same issue but with UpdateViewportContainerSizes being called later than in this bug so checking for this case should catch both. BUG=627911 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/fe9e63ecc3b6d320006ba0d22b7000eb0af30239 Cr-Commit-Position: refs/heads/master@{#406341}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -52 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 1 chunk +81 lines, -48 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
bokan
Hi Ali, ptal.
4 years, 5 months ago (2016-07-13 23:47:23 UTC) #3
bokan
Arg, everyone's OOO. Wei, could you take a look please? Thanks.
4 years, 5 months ago (2016-07-14 12:52:53 UTC) #11
bokan
ping
4 years, 5 months ago (2016-07-18 14:44:54 UTC) #12
bokan
Looks like Ali's back and Wei's out/busy. +ajuma@, ptal.
4 years, 5 months ago (2016-07-19 15:48:46 UTC) #14
ajuma
lgtm
4 years, 5 months ago (2016-07-19 17:20:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2149033002/40001
4 years, 5 months ago (2016-07-19 17:34:24 UTC) #17
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-19 17:34:26 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-19 19:19:37 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-19 19:20:11 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 19:22:45 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fe9e63ecc3b6d320006ba0d22b7000eb0af30239
Cr-Commit-Position: refs/heads/master@{#406341}

Powered by Google App Engine
This is Rietveld 408576698