| Index: cc/trees/layer_tree_host_impl.cc
|
| diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
|
| index 49255b0370c24a261bca9269773e2f1c799d844b..82285b1d0077f5899319dcb8d839eb6d8d7cac74 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -3470,9 +3470,7 @@ void LayerTreeHostImpl::MouseMoveAt(const gfx::Point& viewport_point) {
|
| if (!new_animation_controller)
|
| return;
|
|
|
| - int new_layer_id = active_tree_->LayerIdByElementId(new_element_id);
|
| - for (ScrollbarLayerImplBase* scrollbar :
|
| - active_tree_->ScrollbarsFor(new_layer_id)) {
|
| + for (auto* scrollbar : active_tree_->ScrollbarsFor(new_element_id)) {
|
| new_animation_controller->DidMouseMoveNear(
|
| scrollbar->orientation(),
|
| DeviceSpaceDistanceToLayer(device_viewport_point, scrollbar) /
|
| @@ -3698,14 +3696,13 @@ std::string LayerTreeHostImpl::LayerTreeAsJson() const {
|
| }
|
|
|
| void LayerTreeHostImpl::RegisterScrollbarAnimationController(
|
| - int scroll_layer_id,
|
| ElementId scroll_element_id) {
|
| if (settings().scrollbar_animator == LayerTreeSettings::NO_ANIMATOR)
|
| return;
|
| if (ScrollbarAnimationControllerForElementId(scroll_element_id))
|
| return;
|
| scrollbar_animation_controllers_[scroll_element_id] =
|
| - active_tree_->CreateScrollbarAnimationController(scroll_layer_id);
|
| + active_tree_->CreateScrollbarAnimationController(scroll_element_id);
|
| }
|
|
|
| void LayerTreeHostImpl::UnregisterScrollbarAnimationController(
|
| @@ -3746,8 +3743,8 @@ void LayerTreeHostImpl::SetNeedsRedrawForScrollbarAnimation() {
|
| SetNeedsRedraw();
|
| }
|
|
|
| -ScrollbarSet LayerTreeHostImpl::ScrollbarsFor(int scroll_layer_id) const {
|
| - return active_tree_->ScrollbarsFor(scroll_layer_id);
|
| +ScrollbarSet LayerTreeHostImpl::ScrollbarsFor(ElementId id) const {
|
| + return active_tree_->ScrollbarsFor(id);
|
| }
|
|
|
| void LayerTreeHostImpl::AddVideoFrameController(
|
|
|