| Index: ui/views/border.cc
|
| diff --git a/ui/views/border.cc b/ui/views/border.cc
|
| index c4008bff23159e8e2dc049c979b9fa035784f207..14e6d302e20de5e7955465510d7dfdbc2a6cccb9 100644
|
| --- a/ui/views/border.cc
|
| +++ b/ui/views/border.cc
|
| @@ -88,16 +88,16 @@ RoundedRectBorder::RoundedRectBorder(int thickness,
|
| : thickness_(thickness), corner_radius_(corner_radius), color_(color) {}
|
|
|
| void RoundedRectBorder::Paint(const View& view, gfx::Canvas* canvas) {
|
| - cc::PaintFlags paint;
|
| - paint.setStrokeWidth(thickness_);
|
| - paint.setColor(color_);
|
| - paint.setStyle(cc::PaintFlags::kStroke_Style);
|
| - paint.setAntiAlias(true);
|
| + cc::PaintFlags flags;
|
| + flags.setStrokeWidth(thickness_);
|
| + flags.setColor(color_);
|
| + flags.setStyle(cc::PaintFlags::kStroke_Style);
|
| + flags.setAntiAlias(true);
|
|
|
| float half_thickness = thickness_ / 2.0f;
|
| gfx::RectF bounds(view.GetLocalBounds());
|
| bounds.Inset(half_thickness, half_thickness);
|
| - canvas->DrawRoundRect(bounds, corner_radius_, paint);
|
| + canvas->DrawRoundRect(bounds, corner_radius_, flags);
|
| }
|
|
|
| gfx::Insets RoundedRectBorder::GetInsets() const {
|
|
|