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

Unified Diff: ui/views/controls/button/label_button.cc

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: ExtendableEnum Created 3 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: ui/views/controls/button/label_button.cc
diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc
index 4a7cfd912fab2b1bdd0ce463176fc6b501408a15..e4034cc3b353e81e55b736d87a5d82250c7d9d88 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -237,7 +237,7 @@ gfx::Size LabelButton::GetPreferredSize() const {
return cached_preferred_size_;
// Use a temporary label copy for sizing to avoid calculation side-effects.
- Label label(GetText(), label_->font_list());
+ Label label(GetText(), Label::CustomFont{label_->font_list()});
label.SetShadows(label_->shadows());
if (style_ == STYLE_BUTTON && PlatformStyle::kDefaultLabelButtonHasBoldFont) {

Powered by Google App Engine
This is Rietveld 408576698