Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Unified Diff: webkit/renderer/compositor_bindings/scrollbar_impl.cc

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/renderer/compositor_bindings/scrollbar_impl.cc
diff --git a/webkit/renderer/compositor_bindings/scrollbar_impl.cc b/webkit/renderer/compositor_bindings/scrollbar_impl.cc
index fb60cd89a5e043450cb80b796de9f8029e342ad8..adbb6b81a5061d4eff414efc1b7e3d592820cdee 100644
--- a/webkit/renderer/compositor_bindings/scrollbar_impl.cc
+++ b/webkit/renderer/compositor_bindings/scrollbar_impl.cc
@@ -63,7 +63,8 @@ gfx::Rect ScrollbarImpl::TrackRect() const {
}
void ScrollbarImpl::PaintPart(
- SkCanvas* canvas, cc::ScrollbarPart part, gfx::Rect content_rect) {
+ SkCanvas* canvas, cc::ScrollbarPart part,
+ const gfx::Rect& content_rect) {
if (part == cc::THUMB) {
painter_.paintThumb(canvas, content_rect);
return;
« no previous file with comments | « webkit/renderer/compositor_bindings/scrollbar_impl.h ('k') | webkit/renderer/compositor_bindings/web_content_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698