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

Unified Diff: ui/views/border.cc

Issue 2680943002: ui: Clean up naming of paint-related identifiers (Closed)
Patch Set: Created 3 years, 10 months 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/views/animation/ink_drop_painted_layer_delegates.cc ('k') | ui/views/bubble/bubble_border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « ui/views/animation/ink_drop_painted_layer_delegates.cc ('k') | ui/views/bubble/bubble_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698