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

Unified Diff: Source/platform/mac/ThemeMac.mm

Issue 1292593003: Revert "Revert "Reland 2: mac: Use a placeholder string for the family name of the system font." Br… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « Source/platform/mac/ThemeMac.h ('k') | Source/platform/mac/VersionUtilMac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mac/ThemeMac.mm
diff --git a/Source/platform/mac/ThemeMac.mm b/Source/platform/mac/ThemeMac.mm
index a53db21a8d9a27baf96b12c17bc1d9d33f140d1c..5218678ef87b1eac58840c2a9c3383cd368220ad 100644
--- a/Source/platform/mac/ThemeMac.mm
+++ b/Source/platform/mac/ThemeMac.mm
@@ -57,18 +57,6 @@
@end
-@implementation NSFont (WebCoreTheme)
-
-- (NSString*)webCoreFamilyName
-{
- if ([[self familyName] hasPrefix:@"."])
- return [self fontName];
-
- return [self familyName];
-}
-
-@end
-
namespace blink {
Theme* platformTheme()
@@ -558,7 +546,7 @@ FontDescription ThemeMac::controlFont(ControlPart part, const FontDescription& f
result.setGenericFamily(FontDescription::SerifFamily);
NSFont* nsFont = [NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:controlSizeForFont(fontDescription)]];
- result.firstFamily().setFamily([nsFont webCoreFamilyName]);
+ result.firstFamily().setFamily(@"BlinkMacSystemFont");
result.setComputedSize([nsFont pointSize] * zoomFactor);
result.setSpecifiedSize([nsFont pointSize] * zoomFactor);
return result;
« no previous file with comments | « Source/platform/mac/ThemeMac.h ('k') | Source/platform/mac/VersionUtilMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698