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

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

Issue 142523003: Renames gfx::FontList::Derive* family. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« ui/gfx/font_list.cc ('K') | « ui/gfx/render_text_pango.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/label.cc
diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
index 0a7362d41d6c15a9d016915967e3a25ef495971c..11409b4adf389f16edac2dbe57ee42b71366445c 100644
--- a/ui/views/controls/label.cc
+++ b/ui/views/controls/label.cc
@@ -216,7 +216,8 @@ gfx::Size Label::GetMinimumSize() {
if ((!visible() && collapse_when_hidden_) || text_size.IsEmpty())
return gfx::Size();
- gfx::Size size(font_list_.GetStringWidth(base::string16(gfx::kEllipsisUTF16)),
+ gfx::Size size(gfx::GetStringWidth(base::string16(gfx::kEllipsisUTF16),
+ font_list_),
font_list_.GetHeight());
size.SetToMin(text_size); // The actual text may be shorter than an ellipsis.
gfx::Insets insets = GetInsets();
« ui/gfx/font_list.cc ('K') | « ui/gfx/render_text_pango.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698