Index: cc/scrollbar_layer.cc |
diff --git a/cc/scrollbar_layer.cc b/cc/scrollbar_layer.cc |
index 8ebfc89346eba2fa07507f04f4474df47e5a0ff4..97175555ad46f1d91cbfdd57b2c9ccb14fc0b2bf 100644 |
--- a/cc/scrollbar_layer.cc |
+++ b/cc/scrollbar_layer.cc |
@@ -68,9 +68,10 @@ float ScrollbarLayer::clampScaleToMaxTextureSize(float scale) { |
return scale; |
} |
-void ScrollbarLayer::setContentsScale(float contentsScale) { |
- contentsScale = clampScaleToMaxTextureSize(contentsScale); |
- ContentsScalingLayer::setContentsScale(contentsScale); |
+void ScrollbarLayer::updateContentsScale(float scale) |
+{ |
+ float contentsScale = clampScaleToMaxTextureSize(scale); |
+ ContentsScalingLayer::updateContentsScale(contentsScale); |
DCHECK_LE(contentBounds().width(), maxTextureSize()); |
DCHECK_LE(contentBounds().height(), maxTextureSize()); |
} |