Index: cc/layers/scrollbar_layer_impl_base.cc |
diff --git a/cc/layers/scrollbar_layer_impl_base.cc b/cc/layers/scrollbar_layer_impl_base.cc |
index e9b9569e03ebf499850b1ee3ce3159aea4736382..55f46f51d846fe0fe074735abd315c6007dd49f7 100644 |
--- a/cc/layers/scrollbar_layer_impl_base.cc |
+++ b/cc/layers/scrollbar_layer_impl_base.cc |
@@ -35,7 +35,7 @@ ScrollbarLayerImplBase* ScrollbarLayerImplBase::ToScrollbarLayer() { |
} |
gfx::Rect ScrollbarLayerImplBase::ScrollbarLayerRectToContentRect( |
- gfx::RectF layer_rect) const { |
+ const gfx::RectF& layer_rect) const { |
// Don't intersect with the bounds as in LayerRectToContentRect() because |
// layer_rect here might be in coordinates of the containing layer. |
gfx::RectF content_rect = gfx::ScaleRect(layer_rect, |