Title: [295159] trunk/Source
Revision
295159
Author
[email protected]
Date
2022-06-02 17:39:54 -0700 (Thu, 02 Jun 2022)

Log Message

Consolidate NSSpellCheckerSPI to one file.
https://bugs.webkit.org/show_bug.cgi?id=241242

Reviewed by Tim Horton.

Move random bits of SPI that predate our SPI files to the existing SPI files
to clean things up.

* Source/WebCore/PAL/pal/spi/mac/NSSpellCheckerSPI.h:
* Source/WebKit/UIProcess/mac/TextCheckerMac.mm:
* Source/WebKitLegacy/mac/WebCoreSupport/WebEditorClient.mm:
* Source/WebKitLegacy/mac/WebView/WebView.mm:

Canonical link: https://commits.webkit.org/251246@main

Modified Paths

Diff

Modified: trunk/Source/WebCore/PAL/pal/spi/mac/NSSpellCheckerSPI.h (295158 => 295159)


--- trunk/Source/WebCore/PAL/pal/spi/mac/NSSpellCheckerSPI.h	2022-06-03 00:26:13 UTC (rev 295158)
+++ trunk/Source/WebCore/PAL/pal/spi/mac/NSSpellCheckerSPI.h	2022-06-03 00:39:54 UTC (rev 295159)
@@ -36,6 +36,7 @@
 
 @interface NSSpellChecker ()
 
+- (NSString *)languageForWordRange:(NSRange)range inString:(NSString *)string orthography:(NSOrthography *)orthography;
 - (BOOL)deletesAutospaceBeforeString:(NSString *)string language:(NSString *)language;
 - (void)_preflightChosenSpellServer;
 

Modified: trunk/Source/WebKit/UIProcess/mac/TextCheckerMac.mm (295158 => 295159)


--- trunk/Source/WebKit/UIProcess/mac/TextCheckerMac.mm	2022-06-03 00:26:13 UTC (rev 295158)
+++ trunk/Source/WebKit/UIProcess/mac/TextCheckerMac.mm	2022-06-03 00:39:54 UTC (rev 295159)
@@ -38,11 +38,6 @@
 #import <wtf/cocoa/VectorCocoa.h>
 #import <wtf/text/StringView.h>
 
-@interface NSSpellChecker (WebNSSpellCheckerDetails)
-- (NSString *)languageForWordRange:(NSRange)range inString:(NSString *)string orthography:(NSOrthography *)orthography;
-@end
-
-
 static NSString* const WebAutomaticSpellingCorrectionEnabled = @"WebAutomaticSpellingCorrectionEnabled";
 static NSString* const WebContinuousSpellCheckingEnabled = @"WebContinuousSpellCheckingEnabled";
 static NSString* const WebGrammarCheckingEnabled = @"WebGrammarCheckingEnabled";

Modified: trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebEditorClient.mm (295158 => 295159)


--- trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebEditorClient.mm	2022-06-03 00:26:13 UTC (rev 295158)
+++ trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebEditorClient.mm	2022-06-03 00:39:54 UTC (rev 295159)
@@ -99,12 +99,6 @@
 
 using namespace HTMLNames;
 
-#if !PLATFORM(IOS_FAMILY)
-@interface NSSpellChecker (WebNSSpellCheckerDetails)
-- (NSString *)languageForWordRange:(NSRange)range inString:(NSString *)string orthography:(NSOrthography *)orthography;
-@end
-#endif
-
 // FIXME: Seems likely we can get rid of this legacy code for watchOS and tvOS.
 #if PLATFORM(WATCHOS) || PLATFORM(APPLETV)
 @interface NSAttributedString (WebNSAttributedStringDetails)

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebView.mm (295158 => 295159)


--- trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2022-06-03 00:26:13 UTC (rev 295158)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2022-06-03 00:39:54 UTC (rev 295159)
@@ -386,10 +386,6 @@
 
 #if !PLATFORM(IOS_FAMILY)
 
-@interface NSSpellChecker (WebNSSpellCheckerDetails)
-- (void)_preflightChosenSpellServer;
-@end
-
 @interface NSView (WebNSViewDetails)
 - (NSView *)_hitTest:(NSPoint *)aPoint dragTypes:(NSSet *)types;
 - (void)_autoscrollForDraggingInfo:(id)dragInfo timeDelta:(NSTimeInterval)repeatDelta;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to