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

Unified Diff: ui/gfx/font_render_params.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
« no previous file with comments | « ui/gfx/font_render_params.h ('k') | ui/gfx/font_render_params_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_render_params.cc
diff --git a/ui/gfx/font_render_params.cc b/ui/gfx/font_render_params.cc
index 438b071567b950247e2f2d8b5c7f5561a78f4b08..20fa03dfcf4734b171c0f211601c28ade48cc3ef 100644
--- a/ui/gfx/font_render_params.cc
+++ b/ui/gfx/font_render_params.cc
@@ -60,8 +60,8 @@ FontRenderParamsQuery::FontRenderParamsQuery()
: pixel_size(0),
point_size(0),
style(-1),
- device_scale_factor(0) {
-}
+ weight(Font::Weight::INVALID),
+ device_scale_factor(0) {}
FontRenderParamsQuery::FontRenderParamsQuery(
const FontRenderParamsQuery& other) = default;
« no previous file with comments | « ui/gfx/font_render_params.h ('k') | ui/gfx/font_render_params_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698