-
dino@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=113392 <rdar://problem/13474743> Reviewed by Enrica Casucci. Some internal fonts on OS X have a family name that isn't listed in availableFontFamilies. In this case we should use the font name rather than the family name when looking for a match. * platform/mac/ThemeMac.h: NSFont category to provide a web-friendly family name. * platform/mac/ThemeMac.mm: (-[NSFont webCoreFamilyName]): Returns the font name for internal fonts, otherwise the family name. (WebCore::ThemeMac::controlFont): * rendering/RenderThemeMacShared.mm: Use the webCoreFamilyName. (WebCore::RenderThemeMacShared::systemFont): Ditto. (WebCore::RenderThemeMacShared::setFontFromControlSize): Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146995 268f45cc-cd09-0410-ab3c-d52691b4dbfc
eaaeb59a