[SCM] WebKit Debian packaging branch, debian/experimental, updated. debian/1.3.8-1-1049-g2e11a8e

andersca at apple.com andersca at apple.com
Fri Jan 21 14:56:34 UTC 2011


The following commit has been merged in the debian/experimental branch:
commit c5536f337a1ee862dda32f2f3cb559ccd82a7826
Author: andersca at apple.com <andersca at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Jan 5 03:08:40 2011 +0000

    Fix build.
    
    * UIProcess/mac/TextCheckerMac.mm:
    (WebKit::TextChecker::getGuessesForWord):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75041 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit2/ChangeLog b/WebKit2/ChangeLog
index c1f4ca4..87a08cd 100644
--- a/WebKit2/ChangeLog
+++ b/WebKit2/ChangeLog
@@ -1,3 +1,10 @@
+2011-01-04  Anders Carlsson  <andersca at apple.com>
+
+        Fix build.
+
+        * UIProcess/mac/TextCheckerMac.mm:
+        (WebKit::TextChecker::getGuessesForWord):
+
 2011-01-04  Jeff Miller  <jeffm at apple.com>
 
         Reviewed by Darin Adler.
diff --git a/WebKit2/UIProcess/mac/TextCheckerMac.mm b/WebKit2/UIProcess/mac/TextCheckerMac.mm
index 98fe6a7..86dded3 100644
--- a/WebKit2/UIProcess/mac/TextCheckerMac.mm
+++ b/WebKit2/UIProcess/mac/TextCheckerMac.mm
@@ -28,6 +28,10 @@
 #include "TextCheckerState.h"
 #include <wtf/RetainPtr.h>
 
+#ifndef BUILDING_ON_SNOW_LEOPARD
+#import <AppKit/NSTextChecker.h>
+#endif
+
 static const NSString * const WebAutomaticSpellingCorrectionEnabled = @"WebAutomaticSpellingCorrectionEnabled";
 static const NSString * const WebContinuousSpellCheckingEnabled = @"WebContinuousSpellCheckingEnabled";
 static const NSString * const WebGrammarCheckingEnabled = @"WebGrammarCheckingEnabled";
@@ -221,10 +225,10 @@ void TextChecker::getGuessesForWord(int64_t spellDocumentTag, const String& word
     NSOrthography* orthography = nil;
     NSSpellChecker *checker = [NSSpellChecker sharedSpellChecker];
     if (context.length()) {
-        [checker checkString:context range:NSMakeRange(0, context.length()) types:NSTextCheckingTypeOrthography options:0 inSpellDocumentWithTag:spellCheckerDocumentTag() orthography:&orthography wordCount:0];
+        [checker checkString:context range:NSMakeRange(0, context.length()) types:NSTextCheckingTypeOrthography options:0 inSpellDocumentWithTag:spellDocumentTag orthography:&orthography wordCount:0];
         language = [checker languageForWordRange:NSMakeRange(0, context.length()) inString:context orthography:orthography];
     }
-    NSArray* stringsArray = [checker guessesForWordRange:NSMakeRange(0, word.length()) inString:word language:language inSpellDocumentWithTag:spellCheckerDocumentTag()];
+    NSArray* stringsArray = [checker guessesForWordRange:NSMakeRange(0, word.length()) inString:word language:language inSpellDocumentWithTag:spellDocumentTag];
 #else
     NSArray* stringsArray = [[NSSpellChecker sharedSpellChecker] guessesForWord:word];
 #endif

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list