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

Unified Diff: cc/input/scroll_state.cc

Issue 2708493002: Refactor scroll chaining to use ScrollNodes without going through LayerImpl (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/input/scroll_state.cc
diff --git a/cc/input/scroll_state.cc b/cc/input/scroll_state.cc
index 5a2a7dd3e431b1c870272e4190b623c8bd606377..7d0becde29caef6732eeb6a6349e45f67c98c4f0 100644
--- a/cc/input/scroll_state.cc
+++ b/cc/input/scroll_state.cc
@@ -28,9 +28,11 @@ void ScrollState::ConsumeDelta(double x, double y) {
void ScrollState::DistributeToScrollChainDescendant() {
if (!scroll_chain_.empty()) {
- const ScrollNode* next = scroll_chain_.front();
+ ScrollNode* next = scroll_chain_.front();
scroll_chain_.pop_front();
- layer_tree_impl_->LayerById(next->owning_layer_id)->DistributeScroll(this);
+
+ ScrollTree& scroll_tree = layer_tree_impl_->property_trees()->scroll_tree;
+ scroll_tree.DistributeScroll(next, this);
}
}
« cc/input/scroll_state.h ('K') | « cc/input/scroll_state.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698