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

Issue 2702143002: Refactor IsScrolledBy and IsClosestScrollAncestor to use ScrollNode ids (Closed)

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

Description

Refactor IsScrolledBy and IsClosestScrollAncestor to use ScrollNode ids This patch switches IsScrolledBy and IsClosestScrollAncestor to use ScrollNode indexes instead of ScrollNode's owning_layer_id. There should be no change in behavior and this gets us a little closer to removing owning_layer_id. BUG=693740 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2702143002 Cr-Commit-Position: refs/heads/master@{#452589} Committed: https://chromium.googlesource.com/chromium/src/+/87f502185cad0c3cbdd7019790a7cff3d37bbf5b

Patch Set 1 #

Total comments: 7

Patch Set 2 : Switch to using layer_id_to_scroll_node_index #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -7 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 2 chunks +18 lines, -7 lines 2 comments Download

Messages

Total messages: 27 (15 generated)
pdr.
3 years, 10 months ago (2017-02-20 02:04:51 UTC) #7
ajuma
+sunxd https://codereview.chromium.org/2702143002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2702143002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode168 cc/trees/layer_tree_host_impl.cc:168: if (scroll_node->id == ancestor->scroll_tree_index()) Just wanted to point ...
3 years, 10 months ago (2017-02-21 16:05:25 UTC) #10
bokan
https://codereview.chromium.org/2702143002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2702143002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode168 cc/trees/layer_tree_host_impl.cc:168: if (scroll_node->id == ancestor->scroll_tree_index()) On 2017/02/21 16:05:25, ajuma wrote: ...
3 years, 10 months ago (2017-02-21 19:45:25 UTC) #11
ajuma
https://codereview.chromium.org/2702143002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2702143002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode168 cc/trees/layer_tree_host_impl.cc:168: if (scroll_node->id == ancestor->scroll_tree_index()) On 2017/02/21 19:45:25, bokan wrote: ...
3 years, 10 months ago (2017-02-21 20:07:56 UTC) #12
bokan
https://codereview.chromium.org/2702143002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2702143002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode168 cc/trees/layer_tree_host_impl.cc:168: if (scroll_node->id == ancestor->scroll_tree_index()) On 2017/02/21 20:07:56, ajuma wrote: ...
3 years, 10 months ago (2017-02-21 20:25:22 UTC) #13
sunxd
https://codereview.chromium.org/2702143002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2702143002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2629 cc/trees/layer_tree_host_impl.cc:2629: return scroll_node->id == scroll_ancestor->scroll_tree_index(); On 2017/02/21 16:05:25, ajuma wrote: ...
3 years, 10 months ago (2017-02-22 22:25:19 UTC) #14
pdr.
Nice find Ali. This is actually pretty easy to fix using layer_id_to_scroll_node_index. PTAL https://codereview.chromium.org/2702143002/diff/1/cc/trees/layer_tree_host_impl.cc File ...
3 years, 10 months ago (2017-02-23 05:44:26 UTC) #17
ajuma
Thanks, just have a question about how this is going to work in SPv2 when ...
3 years, 10 months ago (2017-02-23 14:19:01 UTC) #20
pdr.
https://codereview.chromium.org/2702143002/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2702143002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode166 cc/trees/layer_tree_host_impl.cc:166: property_trees->layer_id_to_scroll_node_index.find(ancestor->id()); On 2017/02/23 at 14:19:00, ajuma wrote: > Is ...
3 years, 10 months ago (2017-02-23 19:19:19 UTC) #21
ajuma
On 2017/02/23 19:19:19, pdr. wrote: > https://codereview.chromium.org/2702143002/diff/20001/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (right): > > https://codereview.chromium.org/2702143002/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode166 > ...
3 years, 10 months ago (2017-02-23 19:26:19 UTC) #22
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/2702143002/20001
3 years, 10 months ago (2017-02-23 19:28:04 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 19:37:42 UTC) #27
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/87f502185cad0c3cbdd7019790a7...

Powered by Google App Engine
This is Rietveld 408576698