Index: cc/layers/painted_scrollbar_layer.cc |
diff --git a/cc/layers/painted_scrollbar_layer.cc b/cc/layers/painted_scrollbar_layer.cc |
index 6bb76368c485f7fecaccf6630c22661738b1540f..4466d58a3de7ac579aeb084aa4cd89287b5c7745 100644 |
--- a/cc/layers/painted_scrollbar_layer.cc |
+++ b/cc/layers/painted_scrollbar_layer.cc |
@@ -148,7 +148,7 @@ void PaintedScrollbarLayer::SetLayerTreeHost(LayerTreeHost* host) { |
} |
gfx::Rect PaintedScrollbarLayer::ScrollbarLayerRectToContentRect( |
- gfx::Rect layer_rect) const { |
+ const gfx::Rect& 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::Rect expanded_rect = gfx::ScaleToEnclosingRect( |
@@ -217,7 +217,7 @@ bool PaintedScrollbarLayer::Update(ResourceUpdateQueue* queue, |
} |
UIResourceBitmap PaintedScrollbarLayer::RasterizeScrollbarPart( |
- gfx::Rect rect, |
+ const gfx::Rect& rect, |
ScrollbarPart part) { |
DCHECK(!rect.size().IsEmpty()); |