Index: cc/layers/scrollbar_layer_impl_base.cc |
diff --git a/cc/layers/scrollbar_layer_impl_base.cc b/cc/layers/scrollbar_layer_impl_base.cc |
index c1878b90df916c9348c739ac9118cb3214661d46..204b4914ad9f953e356355e313f106423cd3183d 100644 |
--- a/cc/layers/scrollbar_layer_impl_base.cc |
+++ b/cc/layers/scrollbar_layer_impl_base.cc |
@@ -92,7 +92,7 @@ void ScrollbarLayerImplBase::SetScrollLayerAndClipLayerByIds( |
RegisterScrollbarWithLayers( |
this, clip_layer_, scroll_layer_, &LayerImpl::AddScrollbar); |
- ScrollbarParametersDidChange(); |
+ ScrollbarParametersDidChange(false); |
} |
gfx::Rect ScrollbarLayerImplBase::ScrollbarLayerRectToContentRect( |
@@ -247,11 +247,11 @@ gfx::Rect ScrollbarLayerImplBase::ComputeThumbQuadRect() const { |
return ScrollbarLayerRectToContentRect(thumb_rect); |
} |
-void ScrollbarLayerImplBase::ScrollbarParametersDidChange() { |
+void ScrollbarLayerImplBase::ScrollbarParametersDidChange(bool on_resize) { |
if (!clip_layer_ || !scroll_layer_) |
return; |
- scroll_layer_->SetScrollbarPosition(this, clip_layer_); |
+ scroll_layer_->SetScrollbarPosition(this, clip_layer_, on_resize); |
} |
} // namespace cc |