Index: ui/gfx/platform_font_ios.mm |
diff --git a/ui/gfx/platform_font_ios.mm b/ui/gfx/platform_font_ios.mm |
index 92608d322c0ec46295a393aef085e4e2ac79785f..6ce88121cacd564f413996ad61c636132acb1668 100644 |
--- a/ui/gfx/platform_font_ios.mm |
+++ b/ui/gfx/platform_font_ios.mm |
@@ -55,16 +55,16 @@ int PlatformFontIOS::GetCapHeight() const { |
return cap_height_; |
} |
-int PlatformFontIOS::GetAverageCharacterWidth() const { |
+float PlatformFontIOS::GetAverageCharacterWidth() const { |
return average_width_; |
} |
-int PlatformFontIOS::GetStringWidth(const base::string16& text) const { |
+float PlatformFontIOS::GetStringWidth(const base::string16& text) const { |
NSString* ns_text = base::SysUTF16ToNSString(text); |
return [ns_text sizeWithFont:GetNativeFont()].width; |
} |
-int PlatformFontIOS::GetExpectedTextWidth(int length) const { |
+float PlatformFontIOS::GetExpectedTextWidth(int length) const { |
return length * average_width_; |
} |