Title: [257143] trunk/Source/WebKitLegacy/mac
Revision
257143
Author
[email protected]
Date
2020-02-21 10:03:11 -0800 (Fri, 21 Feb 2020)

Log Message

[iOS][Legacy WebKit] Expose SPI for Page::revealCurrentSelection()
https://bugs.webkit.org/show_bug.cgi?id=207960
<rdar://problem/59604163>

Reviewed by Wenson Hsieh.

Together with <https://bugs.webkit.org/show_bug.cgi?id=207955> this allows a client to reveal
the current selection when it's ready to do so.

* WebView/WebView.mm:
(-[WebView revealCurrentSelection]): Added.
* WebView/WebViewPrivate.h:

Modified Paths

Diff

Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (257142 => 257143)


--- trunk/Source/WebKitLegacy/mac/ChangeLog	2020-02-21 17:51:40 UTC (rev 257142)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog	2020-02-21 18:03:11 UTC (rev 257143)
@@ -1,3 +1,18 @@
+2020-02-21  Daniel Bates  <[email protected]>
+
+        [iOS][Legacy WebKit] Expose SPI for Page::revealCurrentSelection()
+        https://bugs.webkit.org/show_bug.cgi?id=207960
+        <rdar://problem/59604163>
+
+        Reviewed by Wenson Hsieh.
+
+        Together with <https://bugs.webkit.org/show_bug.cgi?id=207955> this allows a client to reveal
+        the current selection when it's ready to do so.
+
+        * WebView/WebView.mm:
+        (-[WebView revealCurrentSelection]): Added.
+        * WebView/WebViewPrivate.h:
+
 2020-02-20  Megan Gardner  <[email protected]>
 
         Expose caret color for clients

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebView.mm (257142 => 257143)


--- trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2020-02-21 17:51:40 UTC (rev 257142)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebView.mm	2020-02-21 18:03:11 UTC (rev 257143)
@@ -10212,6 +10212,12 @@
     return result.autorelease();
 }
 
+- (void)revealCurrentSelection
+{
+    if (auto* page = core(self))
+        page->revealCurrentSelection();
+}
+
 @end
 
 #endif

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h (257142 => 257143)


--- trunk/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h	2020-02-21 17:51:40 UTC (rev 257142)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebViewPrivate.h	2020-02-21 18:03:11 UTC (rev 257143)
@@ -1087,6 +1087,7 @@
 
 @interface WebView (WebViewIOSAdditions)
 - (NSArray<DOMElement *> *)_editableElementsInRect:(CGRect)rect;
+- (void)revealCurrentSelection;
 @end
 
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to