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

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

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: Rebase (conflict in layout_delegate.h due to r457774) 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 028c4710a5d229dedb6e0b80ca9290327018c242..70a2f10e09b05d2748f2d52d9871398c35868586 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_->font_list()});
label.SetShadows(label_->shadows());
if (style_ == STYLE_BUTTON && PlatformStyle::kDefaultLabelButtonHasBoldFont) {

Powered by Google App Engine
This is Rietveld 408576698