Chromium Code Reviews
DescriptionRefactor scroll chaining to use ScrollNodes without going through LayerImpl
Before this patch, ScrollState::DistributeToScrollChainDescendant kept
a list of const ScrollNode pointers and used the node's owning_layer_id to
lookup a non-const version of the ScrollNode through LayerImpl's
DistributeScroll. This indirection is not needed and we can simply use a
non-const ScrollNode list, bypassing LayerImpl::DistributeScroll.
It can be verified that this is equivalent by adding the following DHCECK
to ScrollState::DistributeToScrollChainDescendant:
DCHECK_EQ(scroll_tree.Node(layer_tree_impl_->LayerById(next->owning_layer_id)->scroll_tree_index()), next);
This patch lets us remove one use of ScrollNode's owning_layer_id.
BUG=693740
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2708493002
Cr-Commit-Position: refs/heads/master@{#452143}
Committed: https://chromium.googlesource.com/chromium/src/+/014861b417eb3532456a982f1d81a384358fc859
Patch Set 1 #
Total comments: 2
Messages
Total messages: 19 (11 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||