Index: cc/layers/layer_impl.cc |
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc |
index 480cee0db3683360c8419e65cc2c564d09ca2c90..b78cf1a45a80fb195489e303a64a0cea66d22a93 100644 |
--- a/cc/layers/layer_impl.cc |
+++ b/cc/layers/layer_impl.cc |
@@ -833,13 +833,13 @@ void LayerImpl::UpdateScrollbarPositions() { |
if (horizontal_scrollbar_layer_) { |
horizontal_scrollbar_layer_->SetCurrentPos(current_offset.x()); |
horizontal_scrollbar_layer_->SetMaximum(max_scroll_offset_.x()); |
- horizontal_scrollbar_layer_->set_visible_to_total_length_ratio( |
+ horizontal_scrollbar_layer_->SetVisibleToTotalLengthRatio( |
viewport.width() / scrollable_size.width()); |
} |
if (vertical_scrollbar_layer_) { |
vertical_scrollbar_layer_->SetCurrentPos(current_offset.y()); |
vertical_scrollbar_layer_->SetMaximum(max_scroll_offset_.y()); |
- vertical_scrollbar_layer_->set_visible_to_total_length_ratio( |
+ vertical_scrollbar_layer_->SetVisibleToTotalLengthRatio( |
viewport.height() / scrollable_size.height()); |
} |