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

Unified Diff: cc/layers/layer_impl.cc

Issue 23102003: Note scrollbar layer properties changed when position changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | cc/layers/scrollbar_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « no previous file | cc/layers/scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698