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

Issue 2720713004: Reland: Refactor unreliable hit test code to avoid owning_layers (Closed)

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

Description

Reland: Refactor unreliable hit test code to avoid owning_layers In [1] we switched the unreliable hit test code from using ScrollNode's owning_layer to using the ScrollTree's layer_id_to_scroll_node_index. This patch improves on [1] to not use layer_id_to_scroll_node_index either, which turned out to be owning_layer in disguise. The existing IsClosestScrollAncestor code has been refactored into a helper (IsInitialScrollHitTestReliable) that makes the main thread fallback cases more obvious (see: [2,3]). A test has been added for the failure case noticed by Ali Juma in [1] where a drawn scrollbar is the child of a scrolling layer but itself does not scroll. [1] https://codereview.chromium.org/2702143002 [2] https://codereview.chromium.org/238803005 [3] https://codereview.chromium.org/1878323002 This is a reland of https://codereview.chromium.org/2718833002 which was rolled out but turned out to not be the actual cause of https://crbug.com/696919. TBR=ajuma@chromium.org BUG=693740 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2720713004 Cr-Commit-Position: refs/heads/master@{#453686} Committed: https://chromium.googlesource.com/chromium/src/+/dbe75656dc50037306c8a3b6968a5592f4b17106

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -46 lines) Patch
M cc/layers/layer_impl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 4 chunks +42 lines, -33 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 chunk +60 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +6 lines, -12 lines 0 comments Download

Messages

Total messages: 6 (4 generated)
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/2720713004/1
3 years, 9 months ago (2017-02-28 19:15:10 UTC) #3
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 20:23:51 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/dbe75656dc50037306c8a3b6968a...

Powered by Google App Engine
This is Rietveld 408576698