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

Unified Diff: ash/common/shelf/shelf_button.cc

Issue 2527513002: Update ash shelf/tray focus rects. (Closed)
Patch Set: fixes Created 4 years, 1 month 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: ash/common/shelf/shelf_button.cc
diff --git a/ash/common/shelf/shelf_button.cc b/ash/common/shelf/shelf_button.cc
index 5648938ef63c566be4c06a45e6291ef9e4ad8387..0ad1d8ce4e967490d7054c1f542664a9cb6ada5f 100644
--- a/ash/common/shelf/shelf_button.cc
+++ b/ash/common/shelf/shelf_button.cc
@@ -472,9 +472,8 @@ void ShelfButton::OnBlur() {
void ShelfButton::OnPaint(gfx::Canvas* canvas) {
CustomButton::OnPaint(canvas);
if (HasFocus()) {
- gfx::Rect paint_bounds(GetLocalBounds());
- paint_bounds.Inset(1, 1, 1, 1);
- canvas->DrawSolidFocusRect(paint_bounds, kFocusBorderColor);
+ canvas->DrawSolidFocusRect(gfx::RectF(GetLocalBounds()), kFocusBorderColor,
+ kFocusBorderThickness);
}
}

Powered by Google App Engine
This is Rietveld 408576698