| Index: trunk/src/ui/gfx/text_utils_ios.mm
|
| ===================================================================
|
| --- trunk/src/ui/gfx/text_utils_ios.mm (revision 289509)
|
| +++ trunk/src/ui/gfx/text_utils_ios.mm (working copy)
|
| @@ -20,8 +20,7 @@
|
| float GetStringWidthF(const base::string16& text, const FontList& font_list) {
|
| NSString* ns_text = base::SysUTF16ToNSString(text);
|
| NativeFont native_font = font_list.GetPrimaryFont().GetNativeFont();
|
| - NSDictionary* attributes = @{ NSFontAttributeName : native_font };
|
| - return std::ceil([ns_text sizeWithAttributes:attributes].width);
|
| + return [ns_text sizeWithFont:native_font].width;
|
| }
|
|
|
| } // namespace gfx
|
|
|