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

Issue 2827163005: Remove scroll layer ids from scrollbar layers (Closed)

Created:
3 years, 8 months ago by pdr.
Modified:
3 years, 8 months ago
Reviewers:
wkorman, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove scroll layer ids from scrollbar layers This patch removes scroll layer ids from scrollbar layers so scrollbars only track the scrolling element id. The big changes in this patch are: 1) ScrollbarLayerInterface no longer has a scroll_layer_id and instead just uses scroll_element_id. SetScrollInfo has been renamed SetScrollElementId. 2) Similarly, ScrollbarLayerImplBase no longer has a scroll_layer_id and SetScrollInfo has been renamed SetScrollElementId. 3) Regrettably, two instances of LayerIdByElementId have been added in RegisterScrollbar and CanScrollOrientation. These uses of LayerIdByElementId require a 1:1 mapping between layers and element ids which is not necessary. TODOs have been added to remove these. This patch also fixes a bug in ScrollbarLayerImplBase::SetScrollLayerId where scroll_element_id was compared to itself instead of scroll_element_id_. BUG=693740 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2827163005 Cr-Commit-Position: refs/heads/master@{#466091} Committed: https://chromium.googlesource.com/chromium/src/+/75a6cc514e06cd92ccf0689898e15c6d2b6fca16

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -145 lines) Patch
M cc/blink/web_scrollbar_layer_impl.cc View 3 chunks +2 lines, -6 lines 0 comments Download
M cc/input/scrollbar_animation_controller_unittest.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M cc/input/single_scrollbar_animation_controller_thinning_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M cc/layers/painted_overlay_scrollbar_layer.h View 4 chunks +1 line, -5 lines 0 comments Download
M cc/layers/painted_overlay_scrollbar_layer.cc View 3 chunks +4 lines, -9 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.h View 4 chunks +1 line, -5 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 3 chunks +5 lines, -9 lines 0 comments Download
M cc/layers/painted_scrollbar_layer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/scrollbar_layer_impl_base.h View 2 chunks +1 line, -4 lines 0 comments Download
M cc/layers/scrollbar_layer_impl_base.cc View 3 chunks +7 lines, -11 lines 1 comment Download
M cc/layers/scrollbar_layer_interface.h View 1 chunk +1 line, -2 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 16 chunks +15 lines, -25 lines 0 comments Download
M cc/layers/solid_color_scrollbar_layer.h View 4 chunks +1 line, -6 lines 0 comments Download
M cc/layers/solid_color_scrollbar_layer.cc View 5 chunks +5 lines, -14 lines 0 comments Download
M cc/test/fake_painted_scrollbar_layer.h View 3 chunks +0 lines, -3 lines 0 comments Download
M cc/test/fake_painted_scrollbar_layer.cc View 2 chunks +3 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 11 chunks +14 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_scrollbars.cc View 6 chunks +6 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 15 (9 generated)
pdr.
3 years, 8 months ago (2017-04-20 06:26:20 UTC) #6
wkorman
lgtm https://codereview.chromium.org/2827163005/diff/1/cc/layers/scrollbar_layer_impl_base.cc File cc/layers/scrollbar_layer_impl_base.cc (right): https://codereview.chromium.org/2827163005/diff/1/cc/layers/scrollbar_layer_impl_base.cc#newcode46 cc/layers/scrollbar_layer_impl_base.cc:46: if (scroll_element_id_ == scroll_element_id) Can we add a ...
3 years, 8 months ago (2017-04-20 17:53:47 UTC) #7
pdr.
On 2017/04/20 at 17:53:47, wkorman wrote: > lgtm > > https://codereview.chromium.org/2827163005/diff/1/cc/layers/scrollbar_layer_impl_base.cc > File cc/layers/scrollbar_layer_impl_base.cc (right): ...
3 years, 8 months ago (2017-04-20 18:04:40 UTC) #8
enne (OOO)
This is great! lgtm
3 years, 8 months ago (2017-04-20 18:51:22 UTC) #10
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/2827163005/1
3 years, 8 months ago (2017-04-20 19:13:35 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 19:21:38 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/75a6cc514e06cd92ccf0689898e1...

Powered by Google App Engine
This is Rietveld 408576698