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

Unified Diff: ui/gfx/platform_font_mac.mm

Issue 10545050: mac: Use NSWidth() and friends in a few more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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/gfx/platform_font_mac.mm
diff --git a/ui/gfx/platform_font_mac.mm b/ui/gfx/platform_font_mac.mm
index 8bd4bf68a043d4df1540d54825a9b71a851724f6..a0d4e69eb4d338b79760612ac71b841ec4562fbe 100644
--- a/ui/gfx/platform_font_mac.mm
+++ b/ui/gfx/platform_font_mac.mm
@@ -107,7 +107,7 @@ void PlatformFontMac::CalculateMetrics() {
height_ = [layout_manager defaultLineHeightForFont:font];
ascent_ = [font ascender];
average_width_ =
- [font boundingRectForGlyph:[font glyphWithName:@"x"]].size.width;
+ NSWidth([font boundingRectForGlyph:[font glyphWithName:@"x"]]);
}
////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698