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

Unified Diff: ui/gfx/canvas_skia_win.cc

Issue 8383028: ui/gfx: Convert Canvas::ClipRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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: ui/gfx/canvas_skia_win.cc
diff --git a/ui/gfx/canvas_skia_win.cc b/ui/gfx/canvas_skia_win.cc
index 07c08d58605092eded83987060a6e5720ecd2b9f..68deb73845bc4cee8498cf9703f7b1b4dc6fef7c 100644
--- a/ui/gfx/canvas_skia_win.cc
+++ b/ui/gfx/canvas_skia_win.cc
@@ -569,8 +569,7 @@ void CanvasSkia::DrawFadeTruncatingString(
// Draw the solid part.
canvas_->save(SkCanvas::kClip_SaveFlag);
- ClipRectInt(solid_part.x(), solid_part.y(),
- solid_part.width(), solid_part.height());
+ ClipRectInt(solid_part);
DrawStringInt(text, font, color,
text_rect.x(), text_rect.y(),
text_rect.width(), text_rect.height(),

Powered by Google App Engine
This is Rietveld 408576698