| Index: ui/gfx/font_list.cc
|
| diff --git a/ui/gfx/font_list.cc b/ui/gfx/font_list.cc
|
| index e01483a7cc1e9c811171e56ccd8c448004fb5186..d1d7fb42f6750c1a0169d2018c16b10bbc0bc439 100644
|
| --- a/ui/gfx/font_list.cc
|
| +++ b/ui/gfx/font_list.cc
|
| @@ -177,7 +177,7 @@ int FontList::GetBaseline() const {
|
| return common_baseline_;
|
| }
|
|
|
| -int FontList::GetStringWidth(const base::string16& text) const {
|
| +float FontList::GetStringWidth(const base::string16& text) const {
|
| // Rely on the primary font metrics for the time being.
|
| // TODO(yukishiino): Not only the first font, all the fonts in the list should
|
| // be taken into account to compute the pixels needed to display |text|.
|
| @@ -190,7 +190,7 @@ int FontList::GetStringWidth(const base::string16& text) const {
|
| return GetPrimaryFont().GetStringWidth(text);
|
| }
|
|
|
| -int FontList::GetExpectedTextWidth(int length) const {
|
| +float FontList::GetExpectedTextWidth(int length) const {
|
| // Rely on the primary font metrics for the time being.
|
| return GetPrimaryFont().GetExpectedTextWidth(length);
|
| }
|
|
|