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

Unified Diff: views/controls/button/checkbox.cc

Issue 8359029: ui/gfx: Convert Canvas::DrawFocusRect() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address Peter's review 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
« no previous file with comments | « ui/gfx/canvas_skia.cc ('k') | views/controls/button/text_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/checkbox.cc
diff --git a/views/controls/button/checkbox.cc b/views/controls/button/checkbox.cc
index b60e802afd21c03fd636653053be255a59e992a0..da2b04c4005b9800225d331a588deb89cae7a0f6 100644
--- a/views/controls/button/checkbox.cc
+++ b/views/controls/button/checkbox.cc
@@ -66,8 +66,7 @@ void Checkbox::OnPaintFocusBorder(gfx::Canvas* canvas) {
// Increate the bounding box by one on each side so that that focus border
// does not draw on top of the letters.
bounds.Inset(-1, -1, -1, -1);
- canvas->DrawFocusRect(bounds.x(), bounds.y(), bounds.width(),
- bounds.height());
+ canvas->DrawFocusRect(bounds);
}
}
« no previous file with comments | « ui/gfx/canvas_skia.cc ('k') | views/controls/button/text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698