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

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: Add a lost comment and modify a render text unittest to not test black because of test env font con… Created 4 years, 7 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..283808858a55f34491e0c7e843eea6ff1df641c0 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);
}
« no previous file with comments | « chrome/renderer/pepper/pepper_flash_renderer_host.cc ('k') | content/browser/renderer_host/sandbox_ipc_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698