Changeset 67696 in webkit


Ignore:
Timestamp:
Sep 17, 2010 12:20:19 AM (14 years ago)
Author:
mitz@apple.com
Message:

WebKit should use system wide spell checking preference when application specific one isn't set.
https://bugs.webkit.org/show_bug.cgi?id=45789
<rdar://problem/8416041>

Patch by Jia Pu <jpu@apple.com> on 2010-09-17
Reviewed by Dan Bernstein.

  • WebView/WebView.mm:

(+[WebView initialize]): Use system wide autocorrection and text substitution preferences

when the application level preferences are not set.

Location:
trunk/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/mac/ChangeLog

    r67691 r67696  
     12010-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
    1132010-09-16  John Sullivan  <sullivan@apple.com>
    214
  • trunk/WebKit/mac/WebView/WebView.mm

    r67539 r67696  
    175175#import <wtf/Threading.h>
    176176
     177#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
     178#import <AppKit/NSTextChecker.h>
     179#endif
     180
    177181#if ENABLE(DASHBOARD_SUPPORT)
    178182#import <WebKit/WebDashboardRegion.h>
     
    26372641    automaticSpellingCorrectionEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:WebAutomaticSpellingCorrectionEnabled];
    26382642#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
    26392650}
    26402651
Note: See TracChangeset for help on using the changeset viewer.