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

Unified Diff: ui/views/controls/tabbed_pane/tabbed_pane.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/controls/scrollbar/overlay_scroll_bar.cc ('k') | ui/views/controls/table/table_header.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/tabbed_pane/tabbed_pane.cc
diff --git a/ui/views/controls/tabbed_pane/tabbed_pane.cc b/ui/views/controls/tabbed_pane/tabbed_pane.cc
index fd30e6bf59e2a9d350f5652228bc37d7d35382ce..8a8c7536043eda2bb722ffed691d9af57742c7b8 100644
--- a/ui/views/controls/tabbed_pane/tabbed_pane.cc
+++ b/ui/views/controls/tabbed_pane/tabbed_pane.cc
@@ -340,9 +340,9 @@ const char* TabStrip::GetClassName() const {
}
void TabStrip::OnPaintBorder(gfx::Canvas* canvas) {
- cc::PaintFlags paint;
- paint.setColor(kTabBorderColor);
- paint.setStrokeWidth(kTabBorderThickness);
+ cc::PaintFlags fill_flags;
+ fill_flags.setColor(kTabBorderColor);
+ fill_flags.setStrokeWidth(kTabBorderThickness);
SkScalar line_y = SkIntToScalar(height()) - (kTabBorderThickness / 2);
SkScalar line_end = SkIntToScalar(width());
int selected_tab_index = GetSelectedTabIndex();
@@ -361,13 +361,13 @@ void TabStrip::OnPaintBorder(gfx::Canvas* canvas) {
path.rLineTo(0, tab_height);
path.lineTo(line_end, line_y);
- cc::PaintFlags paint;
- paint.setStyle(cc::PaintFlags::kStroke_Style);
- paint.setColor(kTabBorderColor);
- paint.setStrokeWidth(kTabBorderThickness);
- canvas->DrawPath(path, paint);
+ cc::PaintFlags fill_flags;
+ fill_flags.setStyle(cc::PaintFlags::kStroke_Style);
+ fill_flags.setColor(kTabBorderColor);
+ fill_flags.setStrokeWidth(kTabBorderThickness);
+ canvas->DrawPath(path, fill_flags);
} else {
- canvas->sk_canvas()->drawLine(0, line_y, line_end, line_y, paint);
+ canvas->sk_canvas()->drawLine(0, line_y, line_end, line_y, fill_flags);
}
}
« no previous file with comments | « ui/views/controls/scrollbar/overlay_scroll_bar.cc ('k') | ui/views/controls/table/table_header.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698