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

Unified Diff: ui/views/controls/styled_label.cc

Issue 1773063002: MacViews: Fix failing label-related views_unittests after r377477 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I like this better 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
« no previous file with comments | « ui/views/controls/label_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/styled_label.cc
diff --git a/ui/views/controls/styled_label.cc b/ui/views/controls/styled_label.cc
index 3909e7f021bacf5b929563543e47e026fe6de421..9c8f720cee179ae03412fa863f526a9638f9f4d1 100644
--- a/ui/views/controls/styled_label.cc
+++ b/ui/views/controls/styled_label.cc
@@ -99,7 +99,8 @@ const char StyledLabel::kViewClassName[] = "StyledLabel";
StyledLabel::StyledLabel(const base::string16& text,
StyledLabelListener* listener)
- : specified_line_height_(0),
+ : font_list_(Label().font_list()),
tapted 2016/03/08 12:25:43 There's an alternative to this in patchset 2 - whi
+ specified_line_height_(0),
listener_(listener),
width_at_last_size_calculation_(0),
width_at_last_layout_(0),
« no previous file with comments | « ui/views/controls/label_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698