Title: [247328] trunk/Source/WebKit
- Revision
- 247328
- Author
- [email protected]
- Date
- 2019-07-10 15:07:11 -0700 (Wed, 10 Jul 2019)
Log Message
[iOS] Selection handles "Lollipops" can become gray and stay gray
https://bugs.webkit.org/show_bug.cgi?id=198852
<rdar://problem/51736130>
Reviewed by Wenson Hsieh.
Tell the text interaction assistant to update the selection UI when the tint color changes.
We do this by way of deactivating and activating selection.
* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView tintColorDidChange]):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (247327 => 247328)
--- trunk/Source/WebKit/ChangeLog 2019-07-10 21:12:47 UTC (rev 247327)
+++ trunk/Source/WebKit/ChangeLog 2019-07-10 22:07:11 UTC (rev 247328)
@@ -1,3 +1,17 @@
+2019-07-10 Daniel Bates <[email protected]>
+
+ [iOS] Selection handles "Lollipops" can become gray and stay gray
+ https://bugs.webkit.org/show_bug.cgi?id=198852
+ <rdar://problem/51736130>
+
+ Reviewed by Wenson Hsieh.
+
+ Tell the text interaction assistant to update the selection UI when the tint color changes.
+ We do this by way of deactivating and activating selection.
+
+ * UIProcess/ios/WKContentViewInteraction.mm:
+ (-[WKContentView tintColorDidChange]):
+
2019-07-10 Dean Jackson <[email protected]>
Share or Copy image from context menu does not share the correct data
Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (247327 => 247328)
--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2019-07-10 21:12:47 UTC (rev 247327)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2019-07-10 22:07:11 UTC (rev 247328)
@@ -2941,7 +2941,13 @@
- (void)tintColorDidChange
{
[super tintColorDidChange];
+
+ BOOL shouldUpdateTextSelection = self.isFirstResponder && [self canShowNonEmptySelectionView];
+ if (shouldUpdateTextSelection)
+ [_textSelectionAssistant deactivateSelection];
[self _updateInteractionTintColor];
+ if (shouldUpdateTextSelection)
+ [_textSelectionAssistant activateSelection];
}
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes