Title: [229940] trunk/Source/WebKit
Revision
229940
Author
megan_gard...@apple.com
Date
2018-03-23 18:17:07 -0700 (Fri, 23 Mar 2018)

Log Message

Enable unified text selection in select cases for gradual testing
https://bugs.webkit.org/show_bug.cgi?id=183967
<rdar://problem/38815328>

Reviewed by Tim Horton.
        
Enable in select places for a more gradual switch, as this is a big change and we want to make sure
it works before switching completely.

* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView useSelectionAssistantWithGranularity:]):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (229939 => 229940)


--- trunk/Source/WebKit/ChangeLog	2018-03-24 00:33:52 UTC (rev 229939)
+++ trunk/Source/WebKit/ChangeLog	2018-03-24 01:17:07 UTC (rev 229940)
@@ -1,3 +1,17 @@
+2018-03-23  Megan Gardner  <megan_gard...@apple.com>
+
+        Enable unified text selection in select cases for gradual testing
+        https://bugs.webkit.org/show_bug.cgi?id=183967
+        <rdar://problem/38815328>
+
+        Reviewed by Tim Horton.
+        
+        Enable in select places for a more gradual switch, as this is a big change and we want to make sure
+        it works before switching completely.
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        (-[WKContentView useSelectionAssistantWithGranularity:]):
+
 2018-03-23  John Wilander  <wilan...@apple.com>
 
         Resource Load Statistics: Pick up ITP debug mode flag from defaults

Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (229939 => 229940)


--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2018-03-24 00:33:52 UTC (rev 229939)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2018-03-24 01:17:07 UTC (rev 229940)
@@ -1903,6 +1903,9 @@
 
 - (void)useSelectionAssistantWithGranularity:(WKSelectionGranularity)selectionGranularity
 {
+#if ENABLE(UNIFIED_TEXT_SELECTION)
+    selectionGranularity = WKSelectionGranularityCharacter;
+#endif
     if (selectionGranularity == WKSelectionGranularityDynamic) {
         if (_textSelectionAssistant) {
             [_textSelectionAssistant deactivateSelection];
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to