Chromium Code Reviews| Index: chrome/browser/ui/views/location_bar/location_bar_view.cc |
| diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
| index aefe220ff8b14ffeb1bba68c4cc8f09b98de16a6..29a34ae7e2e43d427c9de9c83982a460ba16f2df 100644 |
| --- a/chrome/browser/ui/views/location_bar/location_bar_view.cc |
| +++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
| @@ -755,9 +755,11 @@ void LocationBarView::OnPaint(gfx::Canvas* canvas) { |
| if (show_focus_rect_ && HasFocus()) { |
| gfx::Rect r = location_entry_view_->bounds(); |
| #if defined(OS_WIN) |
| - canvas->DrawFocusRect(r.x() - 1, r.y() - 1, r.width() + 2, r.height() + 2); |
| + gfx::Rect rect(r.x() - 1, r.y() - 1, r.width() + 2, r.height() + 2); |
|
Peter Kasting
2011/10/24 22:15:13
Nit: Simpler:
#if defined(OS_WIN)
r.Inset(-1,
tfarina
2011/10/25 02:04:53
Done.
|
| + canvas->DrawFocusRect(rect); |
| #else |
| - canvas->DrawFocusRect(r.x() - 1, r.y(), r.width() + 2, r.height()); |
| + gfx::Rect rect(r.x() - 1, r.y(), r.width() + 2, r.height()); |
| + canvas->DrawFocusRect(rect); |
| #endif |
| } |
| } |