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

Issue 2723023004: Use element ids as a stable identifier tracking scroll nodes across updates (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

Use element ids as a stable identifier tracking scroll nodes across updates Before the pending tree is swapped to the active tree we need to record the currently scrolling node. Once the pending tree has been pushed to the active tree, the currently scrolling node then needs to be set. Because the topology of the scroll tree can change, this is not as simple as tracking the scroll node index. Before this patch, layers were used as the stable identifier across scroll tree updates. This patch switches to using element ids which lets us remove another user of ScrollNode's owning_layer_id. BUG=693740 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2723023004 Cr-Commit-Position: refs/heads/master@{#454349} Committed: https://chromium.googlesource.com/chromium/src/+/c4e18068559bd3637c76ac46ead252b1d343098e

Patch Set 1 #

Total comments: 2

Patch Set 2 : No need for an explicit ctor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -12 lines) Patch
M cc/trees/layer_tree_impl.cc View 1 1 chunk +13 lines, -12 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
pdr.
3 years, 9 months ago (2017-03-02 00:49:11 UTC) #4
ajuma
lgtm https://codereview.chromium.org/2723023004/diff/1/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2723023004/diff/1/cc/trees/layer_tree_impl.cc#newcode441 cc/trees/layer_tree_impl.cc:441: ElementId scrolling_element_id = ElementId(); nit: no need to ...
3 years, 9 months ago (2017-03-02 15:05:11 UTC) #8
pdr.
https://codereview.chromium.org/2723023004/diff/1/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2723023004/diff/1/cc/trees/layer_tree_impl.cc#newcode441 cc/trees/layer_tree_impl.cc:441: ElementId scrolling_element_id = ElementId(); On 2017/03/02 at 15:05:11, ajuma ...
3 years, 9 months ago (2017-03-02 18:21:45 UTC) #9
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/2723023004/20001
3 years, 9 months ago (2017-03-02 18:22:15 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 19:50:13 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/c4e18068559bd3637c76ac46ead2...

Powered by Google App Engine
This is Rietveld 408576698