| Index: chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc b/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
|
| index ad0463e4391cc3805ce86025f9bc460c8a8ba54a..136846a656be45d5bbcd1319c544fbcc9ddb131d 100644
|
| --- a/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
|
| +++ b/chrome/browser/ui/views/location_bar/background_with_1_px_border.cc
|
| @@ -40,20 +40,20 @@ void BackgroundWith1PxBorder::Paint(gfx::Canvas* canvas,
|
| path.addRoundRect(gfx::RectFToSkRect(border_rect_f), scaled_corner_radius,
|
| scaled_corner_radius);
|
|
|
| - cc::PaintFlags paint;
|
| - paint.setStyle(cc::PaintFlags::kStroke_Style);
|
| - paint.setStrokeWidth(1);
|
| - paint.setAntiAlias(true);
|
| + cc::PaintFlags flags;
|
| + flags.setStyle(cc::PaintFlags::kStroke_Style);
|
| + flags.setStrokeWidth(1);
|
| + flags.setAntiAlias(true);
|
|
|
| SkPath stroke_path;
|
| - paint.getFillPath(path, &stroke_path);
|
| + flags.getFillPath(path, &stroke_path);
|
|
|
| SkPath fill_path;
|
| Op(path, stroke_path, kDifference_SkPathOp, &fill_path);
|
| - paint.setStyle(cc::PaintFlags::kFill_Style);
|
| - paint.setColor(get_color());
|
| - canvas->sk_canvas()->drawPath(fill_path, paint);
|
| + flags.setStyle(cc::PaintFlags::kFill_Style);
|
| + flags.setColor(get_color());
|
| + canvas->sk_canvas()->drawPath(fill_path, flags);
|
|
|
| - paint.setColor(border_color_);
|
| - canvas->sk_canvas()->drawPath(stroke_path, paint);
|
| + flags.setColor(border_color_);
|
| + canvas->sk_canvas()->drawPath(stroke_path, flags);
|
| }
|
|
|