Chromium Code Reviews| Index: ui/gfx/canvas_skia.cc |
| diff --git a/ui/gfx/canvas_skia.cc b/ui/gfx/canvas_skia.cc |
| index d20f92fe56d810d1ba10c9900164f8bd03f378b5..d6a25ee104ad91ee2fec46aca97428f559742e15 100644 |
| --- a/ui/gfx/canvas_skia.cc |
| +++ b/ui/gfx/canvas_skia.cc |
| @@ -123,7 +123,7 @@ void UpdateRenderText(const Rect& rect, |
| render_text->SetColor(color); |
| const int font_style = font_list.GetFontStyle(); |
| - render_text->SetStyle(BOLD, (font_style & Font::BOLD) != 0); |
| + render_text->SetWeight(font_list.GetFontWeight()); |
|
msw
2016/03/22 01:53:43
nit: move below SetStyle calls
Mikus
2016/03/22 14:19:50
Done.
|
| render_text->SetStyle(ITALIC, (font_style & Font::ITALIC) != 0); |
| render_text->SetStyle(UNDERLINE, (font_style & Font::UNDERLINE) != 0); |
| } |