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

Unified Diff: cc/trees/layer_tree_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 | « cc/trees/layer_tree_host_unittest_damage.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index be25e6543063f5cba9201e8d242a6e7fec4e55fc..70ad6de88fa5edde365ba486f17a46e3b6bab0f5 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -259,13 +259,13 @@ void LayerTreeImpl::UpdateSolidColorScrollbars() {
vertical_adjust = layer_tree_host_impl_->VisibleViewportSize().height() -
RootContainerLayer()->bounds().height();
if (ScrollbarLayerImpl* horiz = root_scroll->horizontal_scrollbar_layer()) {
- horiz->set_vertical_adjust(vertical_adjust);
- horiz->set_visible_to_total_length_ratio(
+ horiz->SetVerticalAdjust(vertical_adjust);
+ horiz->SetVisibleToTotalLengthRatio(
scrollable_viewport.width() / ScrollableSize().width());
}
if (ScrollbarLayerImpl* vertical = root_scroll->vertical_scrollbar_layer()) {
- vertical->set_vertical_adjust(vertical_adjust);
- vertical->set_visible_to_total_length_ratio(
+ vertical->SetVerticalAdjust(vertical_adjust);
+ vertical->SetVisibleToTotalLengthRatio(
scrollable_viewport.height() / ScrollableSize().height());
}
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest_damage.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698