Changeset 67696 in webkit
- Timestamp:
- Sep 17, 2010 12:20:19 AM (14 years ago)
- Location:
- trunk/WebKit/mac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/mac/ChangeLog
r67691 r67696 1 2010-09-17 Jia Pu <jpu@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 WebKit should use system wide spell checking preference when application specific one isn't set. 6 https://bugs.webkit.org/show_bug.cgi?id=45789 7 <rdar://problem/8416041> 8 9 * WebView/WebView.mm: 10 (+[WebView initialize]): Use system wide autocorrection and text substitution preferences 11 when the application level preferences are not set. 12 1 13 2010-09-16 John Sullivan <sullivan@apple.com> 2 14 -
trunk/WebKit/mac/WebView/WebView.mm
r67539 r67696 175 175 #import <wtf/Threading.h> 176 176 177 #if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) 178 #import <AppKit/NSTextChecker.h> 179 #endif 180 177 181 #if ENABLE(DASHBOARD_SUPPORT) 178 182 #import <WebKit/WebDashboardRegion.h> … … 2637 2641 automaticSpellingCorrectionEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:WebAutomaticSpellingCorrectionEnabled]; 2638 2642 #endif 2643 2644 #if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) 2645 if (![[NSUserDefaults standardUserDefaults] objectForKey:WebAutomaticTextReplacementEnabled]) 2646 automaticTextReplacementEnabled = [NSSpellChecker isAutomaticTextReplacementEnabled]; 2647 if (![[NSUserDefaults standardUserDefaults] objectForKey:WebAutomaticSpellingCorrectionEnabled]) 2648 automaticTextReplacementEnabled = [NSSpellChecker isAutomaticSpellingCorrectionEnabled]; 2649 #endif 2639 2650 } 2640 2651
Note: See TracChangeset
for help on using the changeset viewer.