summaryrefslogtreecommitdiffstats
path: root/cc/layers/scrollbar_layer_impl_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layers/scrollbar_layer_impl_base.cc')
-rw-r--r--cc/layers/scrollbar_layer_impl_base.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/cc/layers/scrollbar_layer_impl_base.cc b/cc/layers/scrollbar_layer_impl_base.cc
index c1e7126..362465b 100644
--- a/cc/layers/scrollbar_layer_impl_base.cc
+++ b/cc/layers/scrollbar_layer_impl_base.cc
@@ -72,6 +72,13 @@ void ScrollbarLayerImplBase::SetVisibleToTotalLengthRatio(float ratio) {
NoteLayerPropertyChanged();
}
+void ScrollbarLayerImplBase::SetThumbThicknessScaleFactor(float factor) {
+ if (thumb_thickness_scale_factor_ == factor)
+ return;
+ thumb_thickness_scale_factor_ = factor;
+ NoteLayerPropertyChanged();
+}
+
gfx::Rect ScrollbarLayerImplBase::ComputeThumbQuadRect() const {
// Thumb extent is the length of the thumb in the scrolling direction, thumb
// thickness is in the perpendicular direction. Here's an example of a