| Index: cc/layers/painted_scrollbar_layer.cc
|
| diff --git a/cc/layers/painted_scrollbar_layer.cc b/cc/layers/painted_scrollbar_layer.cc
|
| index 7a65992d34320dcd3a62e83c2e54737b1a15de90..8ee3cb75bd148fdac9dcd478e80a4e97d2e86c12 100644
|
| --- a/cc/layers/painted_scrollbar_layer.cc
|
| +++ b/cc/layers/painted_scrollbar_layer.cc
|
| @@ -88,7 +88,7 @@ float PaintedScrollbarLayer::ClampScaleToMaxTextureSize(float scale) {
|
| gfx::Size scaled_bounds = gfx::ScaleToCeiledSize(bounds(), scale);
|
| if (scaled_bounds.width() > MaxTextureSize() ||
|
| scaled_bounds.height() > MaxTextureSize()) {
|
| - if (scaled_bounds.width() > scaled_bounds.height())
|
| + if (bounds().width() > bounds().height())
|
| return (MaxTextureSize() - 1) / static_cast<float>(bounds().width());
|
| else
|
| return (MaxTextureSize() - 1) / static_cast<float>(bounds().height());
|
|
|