| Index: ui/views/controls/focusable_rounded_border_mac.cc
|
| diff --git a/ui/views/controls/focusable_rounded_border_mac.cc b/ui/views/controls/focusable_rounded_border_mac.cc
|
| index 894aca9f7ce79c5c502d860b853cd220e898fb39..ba19855a2a9c0c3e19f576dc9f52b179d332f909 100644
|
| --- a/ui/views/controls/focusable_rounded_border_mac.cc
|
| +++ b/ui/views/controls/focusable_rounded_border_mac.cc
|
| @@ -28,17 +28,16 @@ FocusableRoundedBorder::~FocusableRoundedBorder() {}
|
| // likely diverge in future.
|
| // TODO(ellyjones): Diverge it by adding soft focus rings.
|
| void FocusableRoundedBorder::Paint(const View& view, gfx::Canvas* canvas) {
|
| - cc::PaintFlags paint;
|
| - paint.setStyle(cc::PaintFlags::kStroke_Style);
|
| - paint.setStrokeWidth(kThickness);
|
| - paint.setColor(GetCurrentColor(view));
|
| - paint.setAntiAlias(true);
|
| + cc::PaintFlags flags;
|
| + flags.setStyle(cc::PaintFlags::kStroke_Style);
|
| + flags.setStrokeWidth(kThickness);
|
| + flags.setColor(GetCurrentColor(view));
|
| + flags.setAntiAlias(true);
|
|
|
| float half_thickness = kThickness / 2.0f;
|
| gfx::RectF bounds(view.GetLocalBounds());
|
| bounds.Inset(half_thickness, half_thickness);
|
| - canvas->DrawRoundRect(bounds, ui::NativeThemeMac::kButtonCornerRadius,
|
| - paint);
|
| + canvas->DrawRoundRect(bounds, ui::NativeThemeMac::kButtonCornerRadius, flags);
|
| }
|
|
|
| } // namespace views
|
|
|