Chromium Code Reviews
DescriptionRefactor LayerTreeImpl's scrollbar map to be keyed on element ids
An element can have up to two scrollbars and we can switch LayerTreeImpl's
scrollbar tracking map from layer_id->scrollbar_layer_id to
element_id->scrollbar_layer_id. This patch gets us a little closer to
making the cc scrollbar code just depend on element ids instead of layer
ids.
With this patch we can remove the layer_id param from
LayerTreeHostImpl::RegisterScrollbarAnimationController which will make
it easy to remove layer ids from the scrollbar layers in a followup (i.e.,
track just scroll_element_id instead of scroll_layer_id and scroll_element_id).
This patch is primarily a switch from layer_id to element_id. Some tests
needed updates to ensure the scrolling layer's element id is set.
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/2824693002
Cr-Commit-Position: refs/heads/master@{#465754}
Committed: https://chromium.googlesource.com/chromium/src/+/7b8ed8a28833335aebe45f6e2c4193c7ee058515
Patch Set 1 #
Total comments: 6
Patch Set 2 : Address reviewer comments #
Total comments: 2
Patch Set 3 : wrong:right :: key:value #Patch Set 4 : rebase #Messages
Total messages: 17 (8 generated)
|