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

Issue 2243973002: Fix scroll chaining in CC for non-default RootScroller. (Closed)

Created:
4 years, 4 months ago by bokan
Modified:
4 years, 4 months ago
Reviewers:
ajuma, tdresser
CC:
chromium-reviews, blink-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

Fix scroll chaining in CC for non-default RootScroller. Since the RootScroller proposal allows arbitrary elements to become the outer viewport scroll layer, the scroll chaining behavior need a bit of an adjustment. Specifically, we shouldn't chain past the outer viewport scroll layer. The current code assumes that once we hit the outer viewport scroll layer, we can continue chaining since we'll get to the inner viewport scroll layer. In this CL, we'll add the inner viewport scroll layer to the scroll chain and immediately break when we encounter the outer viewport scroll layer, relying on the fact that the scrolling code will use cc::Viewport to scroll the inner viewport scroll layer. Also added a test to make sure TopControls movement works correctly when a non- default outer viewport layer is used. BUG=505516 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/bc115b4fc5960bfbac9b53b1db4639b648bf59bf Cr-Commit-Position: refs/heads/master@{#413439}

Patch Set 1 #

Patch Set 2 #

Total comments: 4

Patch Set 3 : Addressed Tim's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -5 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 2 1 chunk +12 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 2 chunks +190 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (18 generated)
bokan
Tim, ptal.
4 years, 4 months ago (2016-08-12 20:54:41 UTC) #6
tdresser
In CL description: defaut -> default LGTM, tests look great. https://codereview.chromium.org/2243973002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2243973002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode3022 ...
4 years, 4 months ago (2016-08-15 13:37:42 UTC) #10
bokan
https://codereview.chromium.org/2243973002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2243973002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode3022 cc/trees/layer_tree_host_impl.cc:3022: ScrollNode* inner_scroll_node = On 2016/08/15 13:37:41, tdresser wrote: > ...
4 years, 4 months ago (2016-08-20 22:13:58 UTC) #12
bokan
+ajuma@ for OWNER
4 years, 4 months ago (2016-08-20 22:15:42 UTC) #14
ajuma
lgtm
4 years, 4 months ago (2016-08-22 13:41:53 UTC) #19
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/2243973002/40001
4 years, 4 months ago (2016-08-22 13:42:36 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-22 13:46:47 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 13:49:52 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bc115b4fc5960bfbac9b53b1db4639b648bf59bf
Cr-Commit-Position: refs/heads/master@{#413439}

Powered by Google App Engine
This is Rietveld 408576698