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

Unified Diff: components/favicon/core/fallback_icon_service.cc

Issue 2682813002: components: 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 | « no previous file | components/test_runner/mock_web_theme_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/favicon/core/fallback_icon_service.cc
diff --git a/components/favicon/core/fallback_icon_service.cc b/components/favicon/core/fallback_icon_service.cc
index 195614a800e1535e6c11616000c7fdfb358da607..5164f97aa14f7a22223da40804138670f1014bf1 100644
--- a/components/favicon/core/fallback_icon_service.cc
+++ b/components/favicon/core/fallback_icon_service.cc
@@ -58,15 +58,15 @@ void FallbackIconService::DrawFallbackIcon(
gfx::Canvas* canvas) {
const int kOffsetX = 0;
const int kOffsetY = 0;
- cc::PaintFlags paint;
- paint.setStyle(cc::PaintFlags::kFill_Style);
- paint.setAntiAlias(true);
+ cc::PaintFlags flags;
+ flags.setStyle(cc::PaintFlags::kFill_Style);
+ flags.setAntiAlias(true);
// Draw a filled, colored rounded square.
- paint.setColor(style.background_color);
+ flags.setColor(style.background_color);
int corner_radius = static_cast<int>(size * style.roundness * 0.5 + 0.5);
- canvas->DrawRoundRect(
- gfx::Rect(kOffsetX, kOffsetY, size, size), corner_radius, paint);
+ canvas->DrawRoundRect(gfx::Rect(kOffsetX, kOffsetY, size, size),
+ corner_radius, flags);
// Draw text.
base::string16 icon_text = GetFallbackIconText(icon_url);
« no previous file with comments | « no previous file | components/test_runner/mock_web_theme_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698