Title: [247687] trunk/Source/WebKit
- Revision
- 247687
- Author
- [email protected]
- Date
- 2019-07-22 10:34:55 -0700 (Mon, 22 Jul 2019)
Log Message
[iOS] REGRESSION (r241734): Autocorrection highlight should hide when field becomes defocused
https://bugs.webkit.org/show_bug.cgi?id=199807
<rdar://problem/52760259>
Fix a bad merge of r247653. svn-apply was way too forgiving. The original patch touched
the non-existent function, -_didCommitLoadForMainFrame in WKContentViewInteraction.mm. Because
that didn't exist, svn-apply patched up -clearSelection.
* UIProcess/ios/WKContentView.h:
* UIProcess/ios/WKContentView.mm:
(-[WKContentView _didCommitLoadForMainFrame]): Deleted; moved to WKContentViewInteraction.mm
* UIProcess/ios/WKContentViewInteraction.h:
* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView clearSelection]): Remove code that should be in -_didCommitLoadForMainFrame.
(-[WKContentView _didCommitLoadForMainFrame]): Moved from WKContentView.mm
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (247686 => 247687)
--- trunk/Source/WebKit/ChangeLog 2019-07-22 17:21:09 UTC (rev 247686)
+++ trunk/Source/WebKit/ChangeLog 2019-07-22 17:34:55 UTC (rev 247687)
@@ -1,3 +1,21 @@
+2019-07-22 Daniel Bates <[email protected]>
+
+ [iOS] REGRESSION (r241734): Autocorrection highlight should hide when field becomes defocused
+ https://bugs.webkit.org/show_bug.cgi?id=199807
+ <rdar://problem/52760259>
+
+ Fix a bad merge of r247653. svn-apply was way too forgiving. The original patch touched
+ the non-existent function, -_didCommitLoadForMainFrame in WKContentViewInteraction.mm. Because
+ that didn't exist, svn-apply patched up -clearSelection.
+
+ * UIProcess/ios/WKContentView.h:
+ * UIProcess/ios/WKContentView.mm:
+ (-[WKContentView _didCommitLoadForMainFrame]): Deleted; moved to WKContentViewInteraction.mm
+ * UIProcess/ios/WKContentViewInteraction.h:
+ * UIProcess/ios/WKContentViewInteraction.mm:
+ (-[WKContentView clearSelection]): Remove code that should be in -_didCommitLoadForMainFrame.
+ (-[WKContentView _didCommitLoadForMainFrame]): Moved from WKContentView.mm
+
2019-07-22 Alex Christensen <[email protected]>
Add SPI to _WKWebsiteDataStoreConfiguration for configuring application cache storage location
Modified: trunk/Source/WebKit/UIProcess/ios/WKContentView.h (247686 => 247687)
--- trunk/Source/WebKit/UIProcess/ios/WKContentView.h 2019-07-22 17:21:09 UTC (rev 247686)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentView.h 2019-07-22 17:34:55 UTC (rev 247687)
@@ -102,7 +102,6 @@
- (void)_showInspectorHighlight:(const WebCore::Highlight&)highlight;
- (void)_hideInspectorHighlight;
-- (void)_didCommitLoadForMainFrame;
- (void)_didCommitLayerTree:(const WebKit::RemoteLayerTreeTransaction&)layerTreeTransaction;
- (void)_layerTreeCommitComplete;
Modified: trunk/Source/WebKit/UIProcess/ios/WKContentView.mm (247686 => 247687)
--- trunk/Source/WebKit/UIProcess/ios/WKContentView.mm 2019-07-22 17:21:09 UTC (rev 247686)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentView.mm 2019-07-22 17:34:55 UTC (rev 247687)
@@ -578,13 +578,6 @@
}
#endif
-- (void)_didCommitLoadForMainFrame
-{
- [self _elementDidBlur];
- [self _cancelLongPressGestureRecognizer];
- [_webView _didCommitLoadForMainFrame];
-}
-
- (void)_didCommitLayerTree:(const WebKit::RemoteLayerTreeTransaction&)layerTreeTransaction
{
CGSize contentsSize = layerTreeTransaction.contentsSize();
Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h (247686 => 247687)
--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h 2019-07-22 17:21:09 UTC (rev 247686)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h 2019-07-22 17:34:55 UTC (rev 247687)
@@ -534,6 +534,7 @@
- (void)_handleAutocorrectionContext:(const WebKit::WebAutocorrectionContext&)context;
- (void)_didStartProvisionalLoadForMainFrame;
+- (void)_didCommitLoadForMainFrame;
@property (nonatomic, readonly) BOOL _shouldUseContextMenus;
@property (nonatomic, readonly) BOOL _shouldAvoidResizingWhenInputViewBoundsChange;
Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (247686 => 247687)
--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2019-07-22 17:21:09 UTC (rev 247686)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2019-07-22 17:34:55 UTC (rev 247687)
@@ -2551,9 +2551,6 @@
- (void)clearSelection
{
-#if USE(UIKIT_KEYBOARD_ADDITIONS)
- _seenHardwareKeyDownInNonEditableElement = NO;
-#endif
[self _elementDidBlur];
_page->clearSelection();
}
@@ -3916,6 +3913,16 @@
[self _setDoubleTapGesturesEnabled:NO];
}
+- (void)_didCommitLoadForMainFrame
+{
+#if USE(UIKIT_KEYBOARD_ADDITIONS)
+ _seenHardwareKeyDownInNonEditableElement = NO;
+#endif
+ [self _elementDidBlur];
+ [self _cancelLongPressGestureRecognizer];
+ [_webView _didCommitLoadForMainFrame];
+}
+
#if !USE(UIKIT_KEYBOARD_ADDITIONS)
- (NSArray *)keyCommands
{
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes