aboutsummaryrefslogblamecommitdiff
path: root/www/chromium/files/patch-cc_trees_property__tree.cc
blob: 1211a5a74f8f288a254b0845f0e5eba0a53afb7e (plain) (tree)
1
2
3
4
5
                                                               
                             
                                                                              
 
                                                                   













                                                                   
                                                                 
--- cc/trees/property_tree.cc.orig	2021-04-14 18:40:48 UTC
+++ cc/trees/property_tree.cc
@@ -1299,13 +1299,13 @@ gfx::ScrollOffset ScrollTree::MaxScrollOffset(int scro
 
   gfx::Size clip_layer_bounds = container_bounds(scroll_node->id);
 
-  gfx::ScrollOffset max_offset(
+  gfx::ScrollOffset _max_offset(
       scaled_scroll_bounds.width() - clip_layer_bounds.width(),
       scaled_scroll_bounds.height() - clip_layer_bounds.height());
 
-  max_offset.Scale(1 / scale_factor);
-  max_offset.SetToMax(gfx::ScrollOffset());
-  return max_offset;
+  _max_offset.Scale(1 / scale_factor);
+  _max_offset.SetToMax(gfx::ScrollOffset());
+  return _max_offset;
 }
 
 gfx::SizeF ScrollTree::scroll_bounds(int scroll_node_id) const {