| Index: Source/WebCore/platform/graphics/mac/FontCacheMac.mm
|
| diff --git a/Source/WebCore/platform/graphics/mac/FontCacheMac.mm b/Source/WebCore/platform/graphics/mac/FontCacheMac.mm
|
| index 13ee191eb15b43d25175f472ef48ec675112d4b6..49190595e34d66baec0e84d99303a14d7175d6c2 100644
|
| --- a/Source/WebCore/platform/graphics/mac/FontCacheMac.mm
|
| +++ b/Source/WebCore/platform/graphics/mac/FontCacheMac.mm
|
| @@ -52,30 +52,17 @@ static void invalidateFontCache(void*)
|
| fontCache()->invalidate();
|
| }
|
|
|
| -#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
| static void fontCacheRegisteredFontsChangedNotificationCallback(CFNotificationCenterRef, void* observer, CFStringRef name, const void *, CFDictionaryRef)
|
| {
|
| ASSERT_UNUSED(observer, observer == fontCache());
|
| ASSERT_UNUSED(name, CFEqual(name, kCTFontManagerRegisteredFontsChangedNotification));
|
| invalidateFontCache(0);
|
| }
|
| -#else
|
| -static void fontCacheATSNotificationCallback(ATSFontNotificationInfoRef, void*)
|
| -{
|
| - invalidateFontCache(0);
|
| -}
|
| -#endif
|
|
|
| void FontCache::platformInit()
|
| {
|
| wkSetUpFontCache();
|
| -#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
|
| CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), this, fontCacheRegisteredFontsChangedNotificationCallback, kCTFontManagerRegisteredFontsChangedNotification, 0, CFNotificationSuspensionBehaviorDeliverImmediately);
|
| -#else
|
| - // kCTFontManagerRegisteredFontsChangedNotification does not exist on Leopard and earlier.
|
| - // FIXME: Passing kATSFontNotifyOptionReceiveWhileSuspended may be an overkill and does not seem to work anyway.
|
| - ATSFontNotificationSubscribe(fontCacheATSNotificationCallback, kATSFontNotifyOptionReceiveWhileSuspended, 0, 0);
|
| -#endif
|
| }
|
|
|
| static int toAppKitFontWeight(FontWeight fontWeight)
|
|
|