|
|
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
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
|
Total messages: 15 (9 generated)
|