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

Unified Diff: views/controls/label.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 | « views/controls/button/text_button.cc ('k') | views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/label.cc
diff --git a/views/controls/label.cc b/views/controls/label.cc
index 33fbcd414e2a496f04388ab757694e5cb59455c8..16248d990e0b81f0fe90f4b44c99ae5fe9557702 100644
--- a/views/controls/label.cc
+++ b/views/controls/label.cc
@@ -275,8 +275,7 @@ void Label::PaintText(gfx::Canvas* canvas,
if (HasFocus() || paint_as_focused_) {
gfx::Rect focus_bounds = text_bounds;
focus_bounds.Inset(-kFocusBorderPadding, -kFocusBorderPadding);
- canvas->DrawFocusRect(focus_bounds.x(), focus_bounds.y(),
- focus_bounds.width(), focus_bounds.height());
+ canvas->DrawFocusRect(focus_bounds);
}
}
« no previous file with comments | « views/controls/button/text_button.cc ('k') | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698