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

Issue 2720183003: Track the currently scrolling ScrollNode instead of the scrolling layer (Closed)

Created:
3 years, 9 months ago by pdr.
Modified:
3 years, 9 months ago
Reviewers:
ajuma
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Track the currently scrolling ScrollNode instead of the scrolling layer This patch removes CurrentlyScrollingLayer functions from LayerTreeImpl and LayerTreeHostImpl, replacing them with calls to CurrentlyScrollingNode. This removes two more uses of ScrollNode's owning_layer_id and sets us up to remove the ScrollbarAnimationController dependency on layer ids as well (left out of this patch to keep it simple). BUG=693740 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2720183003 Cr-Commit-Position: refs/heads/master@{#454006} Committed: https://chromium.googlesource.com/chromium/src/+/b2d4d4ba555e4658e5b2ea2ba4cbd9b95ac84442

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 8

Patch Set 3 : Reviewer comments: use kInvalidNodeId and add LayerTreeHostImpl::OuterViewportScrollNode #

Patch Set 4 : Ali did forsee a use-after-free with no stable id #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -182 lines) Patch
M cc/trees/layer_tree_host_common.cc View 1 2 2 chunks +4 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 4 chunks +7 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 22 chunks +78 lines, -70 lines 3 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 42 chunks +112 lines, -59 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 chunks +6 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 3 chunks +43 lines, -25 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 1 2 3 5 chunks +11 lines, -7 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
pdr.
https://codereview.chromium.org/2720183003/diff/20001/cc/trees/tree_synchronizer_unittest.cc File cc/trees/tree_synchronizer_unittest.cc (right): https://codereview.chromium.org/2720183003/diff/20001/cc/trees/tree_synchronizer_unittest.cc#newcode608 cc/trees/tree_synchronizer_unittest.cc:608: host_impl->active_tree()->SetCurrentlyScrollingNode( Reviewer note: This has to be after property ...
3 years, 9 months ago (2017-02-28 19:20:22 UTC) #13
ajuma
https://codereview.chromium.org/2720183003/diff/20001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/2720183003/diff/20001/cc/trees/layer_tree_host_common.cc#newcode609 cc/trees/layer_tree_host_common.cc:609: if (last_scrolled_node_index) { This needs to be compared to ...
3 years, 9 months ago (2017-02-28 22:59:37 UTC) #14
pdr.
https://codereview.chromium.org/2720183003/diff/20001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/2720183003/diff/20001/cc/trees/layer_tree_host_common.cc#newcode609 cc/trees/layer_tree_host_common.cc:609: if (last_scrolled_node_index) { On 2017/02/28 at 22:59:37, ajuma wrote: ...
3 years, 9 months ago (2017-03-01 07:21:03 UTC) #15
ajuma
https://codereview.chromium.org/2720183003/diff/20001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2720183003/diff/20001/cc/trees/layer_tree_impl.cc#newcode439 cc/trees/layer_tree_impl.cc:439: auto* currently_scrolling_node = target_tree->CurrentlyScrollingNode(); On 2017/03/01 07:21:03, pdr. wrote: ...
3 years, 9 months ago (2017-03-01 15:29:20 UTC) #20
ajuma
lgtm
3 years, 9 months ago (2017-03-01 15:29:46 UTC) #21
pdr.
https://codereview.chromium.org/2720183003/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2720183003/diff/60001/cc/trees/layer_tree_host_impl.cc#newcode556 cc/trees/layer_tree_host_impl.cc:556: return node->id == viewport()->MainScrollLayer()->scroll_tree_index(); On 2017/03/01 at 15:29:20, ajuma ...
3 years, 9 months ago (2017-03-01 19:31:27 UTC) #22
ajuma
https://codereview.chromium.org/2720183003/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2720183003/diff/60001/cc/trees/layer_tree_host_impl.cc#newcode556 cc/trees/layer_tree_host_impl.cc:556: return node->id == viewport()->MainScrollLayer()->scroll_tree_index(); On 2017/03/01 19:31:26, pdr. wrote: ...
3 years, 9 months ago (2017-03-01 19:34:42 UTC) #23
pdr.
Thanks for the review! You caught some nasty bugs once again. On 2017/03/01 at 15:29:20, ...
3 years, 9 months ago (2017-03-01 19:50:21 UTC) #24
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/2720183003/60001
3 years, 9 months ago (2017-03-01 19:51:22 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 19:57:27 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b2d4d4ba555e4658e5b2ea2ba4cb...

Powered by Google App Engine
This is Rietveld 408576698