WKWebView doesn’t expose its spellCheckerDocumentTag
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2018 01:15:24 +0000 (01:15 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2018 01:15:24 +0000 (01:15 +0000)
https://bugs.webkit.org/show_bug.cgi?id=183797
<rdar://problem/38678089>

Reviewed by Tim Horton.

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _spellCheckerDocumentTag]): Added this getter which calls through to the WebViewImpl.
* UIProcess/API/Cocoa/WKWebViewPrivate.h: Declared _spellCheckerDocumentTag property.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229875 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h

index 4d4e820..222b3d7 100644 (file)
@@ -1,3 +1,15 @@
+2018-03-22  Dan Bernstein  <mitz@apple.com>
+
+        WKWebView doesn’t expose its spellCheckerDocumentTag
+        https://bugs.webkit.org/show_bug.cgi?id=183797
+        <rdar://problem/38678089>
+
+        Reviewed by Tim Horton.
+
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView _spellCheckerDocumentTag]): Added this getter which calls through to the WebViewImpl.
+        * UIProcess/API/Cocoa/WKWebViewPrivate.h: Declared _spellCheckerDocumentTag property.
+
 2018-03-22  Chris Dumez  <cdumez@apple.com>
 
         Use the same SWServer for all ephemeral sessions
index 18b2bc1..8cf6763 100644 (file)
@@ -5731,6 +5731,11 @@ static WebCore::UserInterfaceLayoutDirection toUserInterfaceLayoutDirection(UISe
     return _impl->ignoresAllEvents();
 }
 
+- (NSInteger)_spellCheckerDocumentTag
+{
+    return _impl->spellCheckerDocumentTag();
+}
+
 #endif
 
 @end
index e63dd9f..5de9708 100644 (file)
@@ -270,6 +270,8 @@ typedef NS_OPTIONS(NSUInteger, _WKRectEdge) {
 
 @property (nonatomic, setter=_setWindowOcclusionDetectionEnabled:) BOOL _windowOcclusionDetectionEnabled;
 
+@property (nonatomic, readonly) NSInteger _spellCheckerDocumentTag WK_API_AVAILABLE(WK_MAC_TBA);
+
 - (void)_setShouldSuppressFirstResponderChanges:(BOOL)shouldSuppress;
 
 // Clients that want to maintain default behavior can return nil. To disable the immediate action entirely, return NSNull. And to