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

Unified Diff: ui/views/controls/slider.cc

Issue 78803002: Fixing focus highlight on high DPI devices for accessibility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 7 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
« no previous file with comments | « ui/message_center/views/padded_button.cc ('k') | ui/views/focus_border.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/slider.cc
diff --git a/ui/views/controls/slider.cc b/ui/views/controls/slider.cc
index 3b449f07083136dd03f12eccb4518f5e2078393d..b68ea1dfbb28ed9e0b015534396c79a1d25035c7 100644
--- a/ui/views/controls/slider.cc
+++ b/ui/views/controls/slider.cc
@@ -320,8 +320,9 @@ void Slider::OnPaintFocusBorder(gfx::Canvas* canvas) {
if (!focus_border_color_) {
View::OnPaintFocusBorder(canvas);
} else if (HasFocus()) {
- canvas->DrawRect(gfx::Rect(1, 1, width() - 3, height() - 3),
- focus_border_color_);
+ canvas->DrawSolidFocusRect(
+ gfx::Rect(1, 1, width() - 3, height() - 3),
+ focus_border_color_);
}
}
« no previous file with comments | « ui/message_center/views/padded_button.cc ('k') | ui/views/focus_border.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698