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

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

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 25efd996ff684fd783876a33106d970b4efaaefe..6775e3a28c0c83052cb978f6835c2eb04f7e48a4 100644
--- a/components/favicon/core/fallback_icon_service.cc
+++ b/components/favicon/core/fallback_icon_service.cc
@@ -79,9 +79,8 @@ void FallbackIconService::DrawFallbackIcon(
canvas->DrawStringRectWithFlags(
icon_text,
gfx::FontList(fallback_icon_client_->GetFontNameList(), gfx::Font::NORMAL,
- font_size),
- style.text_color,
- gfx::Rect(kOffsetX, kOffsetY, size, size),
+ font_size, gfx::Font::WEIGHT_NORMAL),
+ style.text_color, gfx::Rect(kOffsetX, kOffsetY, size, size),
gfx::Canvas::TEXT_ALIGN_CENTER);
}

Powered by Google App Engine
This is Rietveld 408576698