Changeset 132309 in webkit
- Timestamp:
- Oct 23, 2012, 10:13:12 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Source/WebKit/mac/ChangeLog ¶
r132227 r132309 1 2012-10-23 Dan Bernstein <mitz@apple.com> 2 3 WebKit/mac part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default 4 https://bugs.webkit.org/show_bug.cgi?id=100188 5 6 Reviewed by Sam Weinig. 7 8 * WebView/WebView.mm: 9 (+[WebView initialize]): Added a local variable to hold the standard user defaults. Added 10 code to register a value of YES for the WebKitKerningAndLigaturesEnabledByDefault user 11 default. Changed to refer to that default key by name. 12 1 13 2012-10-23 Kenneth Rohde Christiansen <kenneth@webkit.org> 2 14 -
TabularUnified trunk/Source/WebKit/mac/WebView/WebView.mm ¶
r132023 r132309 467 467 NSString *_WebViewDidStartAcceleratedCompositingNotification = @"_WebViewDidStartAcceleratedCompositing"; 468 468 469 NSString *WebKitKerningAndLigaturesEnabledByDefaultDefaultsKey = @"WebKitKerningAndLigaturesEnabledByDefault"; 470 469 471 @interface WebProgressItem : NSObject 470 472 { … … 3119 3121 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_preferencesRemovedNotification:) name:WebPreferencesRemovedNotification object:nil]; 3120 3122 3121 continuousSpellCheckingEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:WebContinuousSpellCheckingEnabled]; 3122 grammarCheckingEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:WebGrammarCheckingEnabled]; 3123 3124 Font::setDefaultTypesettingFeatures([[NSUserDefaults standardUserDefaults] boolForKey:@"WebKitKerningAndLigaturesEnabledByDefault"] ? Kerning | Ligatures : 0); 3123 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; 3124 3125 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 3126 [defaults registerDefaults:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:WebKitKerningAndLigaturesEnabledByDefaultDefaultsKey]]; 3127 #endif 3128 3129 continuousSpellCheckingEnabled = [defaults boolForKey:WebContinuousSpellCheckingEnabled]; 3130 grammarCheckingEnabled = [defaults boolForKey:WebGrammarCheckingEnabled]; 3131 3132 Font::setDefaultTypesettingFeatures([defaults boolForKey:WebKitKerningAndLigaturesEnabledByDefaultDefaultsKey] ? Kerning | Ligatures : 0); 3125 3133 3126 3134 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 3127 automaticQuoteSubstitutionEnabled = [ [NSUserDefaults standardUserDefaults]boolForKey:WebAutomaticQuoteSubstitutionEnabled];3128 automaticLinkDetectionEnabled = [ [NSUserDefaults standardUserDefaults]boolForKey:WebAutomaticLinkDetectionEnabled];3129 automaticDashSubstitutionEnabled = [ [NSUserDefaults standardUserDefaults]boolForKey:WebAutomaticDashSubstitutionEnabled];3130 automaticTextReplacementEnabled = [ [NSUserDefaults standardUserDefaults]boolForKey:WebAutomaticTextReplacementEnabled];3131 automaticSpellingCorrectionEnabled = [ [NSUserDefaults standardUserDefaults]boolForKey:WebAutomaticSpellingCorrectionEnabled];3135 automaticQuoteSubstitutionEnabled = [defaults boolForKey:WebAutomaticQuoteSubstitutionEnabled]; 3136 automaticLinkDetectionEnabled = [defaults boolForKey:WebAutomaticLinkDetectionEnabled]; 3137 automaticDashSubstitutionEnabled = [defaults boolForKey:WebAutomaticDashSubstitutionEnabled]; 3138 automaticTextReplacementEnabled = [defaults boolForKey:WebAutomaticTextReplacementEnabled]; 3139 automaticSpellingCorrectionEnabled = [defaults boolForKey:WebAutomaticSpellingCorrectionEnabled]; 3132 3140 #endif 3133 3141 3134 3142 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 3135 if (![ [NSUserDefaults standardUserDefaults]objectForKey:WebAutomaticTextReplacementEnabled])3143 if (![defaults objectForKey:WebAutomaticTextReplacementEnabled]) 3136 3144 automaticTextReplacementEnabled = [NSSpellChecker isAutomaticTextReplacementEnabled]; 3137 if (![ [NSUserDefaults standardUserDefaults]objectForKey:WebAutomaticSpellingCorrectionEnabled])3145 if (![defaults objectForKey:WebAutomaticSpellingCorrectionEnabled]) 3138 3146 automaticSpellingCorrectionEnabled = [NSSpellChecker isAutomaticSpellingCorrectionEnabled]; 3139 3147 #endif -
TabularUnified trunk/Source/WebKit2/ChangeLog ¶
r132296 r132309 1 2012-10-23 Dan Bernstein <mitz@apple.com> 2 3 WebKit2 part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default 4 https://bugs.webkit.org/show_bug.cgi?id=100188 5 6 Reviewed by Sam Weinig. 7 8 * UIProcess/mac/WebContextMac.mm: 9 (WebKit::registerUserDefaultsIfNeeded): Added. Registers a value of YES for the 10 WebKitKerningAndLigaturesEnabledByDefault user default if it has not been registered yet. 11 (WebKit::WebContext::platformInitializeWebProcess): Added a call to 12 registerUserDefaultsIfNeeded, and changed to refer to the defaults key by name. 13 1 14 2012-10-23 No'am Rosenthal <noam.rosenthal@nokia.com> 2 15 -
TabularUnified trunk/Source/WebKit2/UIProcess/mac/WebContextMac.mm ¶
r131545 r132309 44 44 NSString *WebKitLocalCacheDefaultsKey = @"WebKitLocalCache"; 45 45 NSString *WebStorageDirectoryDefaultsKey = @"WebKitLocalStorageDatabasePathPreferenceKey"; 46 NSString *WebKitKerningAndLigaturesEnabledByDefaultDefaultsKey = @"WebKitKerningAndLigaturesEnabledByDefault"; 46 47 47 48 static NSString *WebKitApplicationDidChangeAccessibilityEnhancedUserInterfaceNotification = @"NSApplicationDidChangeAccessibilityEnhancedUserInterfaceNotification"; … … 74 75 } 75 76 77 static void registerUserDefaultsIfNeeded() 78 { 79 static bool didRegister; 80 if (didRegister) 81 return; 82 83 didRegister = true; 84 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 85 [[NSUserDefaults standardUserDefaults] registerDefaults:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:WebKitKerningAndLigaturesEnabledByDefaultDefaultsKey]]; 86 #endif 87 } 76 88 77 89 void WebContext::platformInitializeWebProcess(WebProcessCreationParameters& parameters) … … 85 97 parameters.nsURLCacheDiskCapacity = [urlCache diskCapacity]; 86 98 99 registerUserDefaultsIfNeeded(); 87 100 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 88 101 parameters.shouldForceScreenFontSubstitution = [[NSUserDefaults standardUserDefaults] boolForKey:@"NSFontDefaultScreenFontSubstitutionEnabled"]; 89 102 #endif 90 parameters.shouldEnableKerningAndLigaturesByDefault = [[NSUserDefaults standardUserDefaults] boolForKey: @"WebKitKerningAndLigaturesEnabledByDefault"];103 parameters.shouldEnableKerningAndLigaturesByDefault = [[NSUserDefaults standardUserDefaults] boolForKey:WebKitKerningAndLigaturesEnabledByDefaultDefaultsKey]; 91 104 92 105 #if USE(ACCELERATED_COMPOSITING) && HAVE(HOSTED_CORE_ANIMATION) -
TabularUnified trunk/Tools/ChangeLog ¶
r132301 r132309 1 2012-10-23 Dan Bernstein <mitz@apple.com> 2 3 Tools changes for <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default 4 https://bugs.webkit.org/show_bug.cgi?id=100188 5 6 Reviewed by Sam Weinig. 7 8 Disable kerning and ligatures by default when running the tests. 9 10 * DumpRenderTree/mac/DumpRenderTree.mm: 11 (resetDefaultsToConsistentValues): Set a value of NO for the 12 WebKitKerningAndLigaturesEnabledByDefault user default. 13 * WebKitTestRunner/mac/main.mm: 14 (main): Register a value of NO for the WebKitKerningAndLigaturesEnabledByDefault user 15 default. 16 1 17 2012-10-23 Simon Fraser <simon.fraser@apple.com> 2 18 -
TabularUnified trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm ¶
r132264 r132309 616 616 [defaults setObject:[path stringByAppendingPathComponent:@"LocalCache"] forKey:WebKitLocalCacheDefaultsKey]; 617 617 618 [defaults setBool:NO forKey:@"WebKitKerningAndLigaturesEnabledByDefault"]; 619 618 620 WebPreferences *preferences = [WebPreferences standardPreferences]; 619 621 -
TabularUnified trunk/Tools/WebKitTestRunner/mac/main.mm ¶
r81140 r132309 32 32 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 33 33 [NSApplication sharedApplication]; 34 [[NSUserDefaults standardUserDefaults] setVolatileDomain:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:NO] forKey:@"WebKitKerningAndLigaturesEnabledByDefault"] forName:NSArgumentDomain]; 34 35 { 35 36 WTR::TestController controller(argc, argv);
Note:
See TracChangeset
for help on using the changeset viewer.