blob: 481776ba30d1ed35f25253660b1dba6772d7402c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- cc/layers/scrollbar_layer_impl_base.cc.orig 2017-06-05 19:03:01 UTC
+++ cc/layers/scrollbar_layer_impl_base.cc
@@ -175,8 +175,8 @@ gfx::Rect ScrollbarLayerImplBase::ComputeThumbQuadRect
int thumb_offset = TrackStart();
if (maximum > 0) {
float ratio = clamped_current_pos / maximum;
- float max_offset = track_length - thumb_length;
- thumb_offset += static_cast<int>(ratio * max_offset);
+ float _max_offset = track_length - thumb_length;
+ thumb_offset += static_cast<int>(ratio * _max_offset);
}
float thumb_thickness_adjustment =
|