aboutsummaryrefslogtreecommitdiff
path: root/www/iridium/files/patch-cc_layers_scrollbar__layer__impl__base.cc
blob: 2b91b797f84daffc0696578ea923d29bd18d1564 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- cc/layers/scrollbar_layer_impl_base.cc.orig	2019-03-11 22:00:52 UTC
+++ cc/layers/scrollbar_layer_impl_base.cc
@@ -218,8 +218,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 =