| Index: ui/views/controls/md_slider.cc
|
| diff --git a/ui/views/controls/md_slider.cc b/ui/views/controls/md_slider.cc
|
| index 201450f62bb573a935faa4443fa9a45e4b838d44..acb97d75f6f645ae0431d0396a7b0be9079e8766 100644
|
| --- a/ui/views/controls/md_slider.cc
|
| +++ b/ui/views/controls/md_slider.cc
|
| @@ -73,12 +73,14 @@ void MdSlider::OnPaint(gfx::Canvas* canvas) {
|
| gfx::Point thumb_center(x, content.height() / 2);
|
|
|
| // Paint the thumb highlight if it exists.
|
| - if (is_active_ && thumb_highlight_radius_ > kThumbRadius) {
|
| + const int thumb_highlight_radius =
|
| + HasFocus() ? kThumbHighlightRadius : thumb_highlight_radius_;
|
| + if (is_active_ && thumb_highlight_radius > kThumbRadius) {
|
| SkPaint highlight;
|
| SkColor kHighlightColor = SkColorSetA(kActiveColor, kHighlightColorAlpha);
|
| highlight.setColor(kHighlightColor);
|
| highlight.setFlags(SkPaint::kAntiAlias_Flag);
|
| - canvas->DrawCircle(thumb_center, thumb_highlight_radius_, highlight);
|
| + canvas->DrawCircle(thumb_center, thumb_highlight_radius, highlight);
|
| }
|
|
|
| // Paint the thumb of the slider.
|
|
|