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

Unified Diff: views/view.cc

Issue 8359029: ui/gfx: Convert Canvas::DrawFocusRect() 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
« ui/gfx/canvas_skia.cc ('K') | « views/controls/label.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.cc
diff --git a/views/view.cc b/views/view.cc
index 925a40f342dd3f7f3cdcc206f13499500a0f6840..b218eca4e44547d4ab0f9e3694a1dfcc900adb86 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -1079,7 +1079,7 @@ void View::OnPaintBorder(gfx::Canvas* canvas) {
void View::OnPaintFocusBorder(gfx::Canvas* canvas) {
if ((IsFocusable() || IsAccessibilityFocusableInRootView()) && HasFocus())
- canvas->DrawFocusRect(0, 0, width(), height());
+ canvas->DrawFocusRect(gfx::Rect(0, 0, width(), height()));
Peter Kasting 2011/10/24 22:15:13 Nit: Just pass GetLocalBounds() instead. (While y
tfarina 2011/10/25 02:04:53 Done.
}
// Accelerated Painting --------------------------------------------------------
« ui/gfx/canvas_skia.cc ('K') | « views/controls/label.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698