summaryrefslogtreecommitdiffstats
path: root/cc/input/scroll_state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/input/scroll_state.cc')
-rw-r--r--cc/input/scroll_state.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/cc/input/scroll_state.cc b/cc/input/scroll_state.cc
index 5591eae..f0e7751 100644
--- a/cc/input/scroll_state.cc
+++ b/cc/input/scroll_state.cc
@@ -6,13 +6,11 @@
#include <utility>
-#include "cc/layers/layer_impl.h"
-#include "cc/layers/layer_list_impl.h"
+#include "cc/trees/layer_tree_impl.h"
namespace cc {
-ScrollState::ScrollState(ScrollStateData data)
- : data_(data), layer_list_impl_(nullptr) {}
+ScrollState::ScrollState(ScrollStateData data) : data_(data) {}
ScrollState::ScrollState(const ScrollState& other) = default;
@@ -30,7 +28,7 @@ void ScrollState::DistributeToScrollChainDescendant() {
if (!scroll_chain_.empty()) {
const ScrollNode* next = scroll_chain_.front();
scroll_chain_.pop_front();
- layer_list_impl_->LayerById(next->owner_id)->DistributeScroll(this);
+ layer_tree_impl_->list()->LayerById(next->owner_id)->DistributeScroll(this);
}
}