Title: [293448] trunk/Source/WebKit
Revision
293448
Author
[email protected]
Date
2022-04-26 14:24:20 -0700 (Tue, 26 Apr 2022)

Log Message

REGRESSION (r293117): Context menu lift animation encompasses the entire web view
https://bugs.webkit.org/show_bug.cgi?id=239782
rdar://92342919

Reviewed by Aditya Keerthi.

After r293117, we no longer implement the context menu delegate method for vending a targeted preview when
showing the context menu for a link or image; rename to match the name of the method we implement to match the
name of the UIKit delegate method.

* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]):
(-[WKContentView contextMenuInteraction:configuration:previewForHighlightingItemWithIdentifier:]): Deleted.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (293447 => 293448)


--- trunk/Source/WebKit/ChangeLog	2022-04-26 21:22:28 UTC (rev 293447)
+++ trunk/Source/WebKit/ChangeLog	2022-04-26 21:24:20 UTC (rev 293448)
@@ -1,3 +1,19 @@
+2022-04-26  Wenson Hsieh  <[email protected]>
+
+        REGRESSION (r293117): Context menu lift animation encompasses the entire web view
+        https://bugs.webkit.org/show_bug.cgi?id=239782
+        rdar://92342919
+
+        Reviewed by Aditya Keerthi.
+
+        After r293117, we no longer implement the context menu delegate method for vending a targeted preview when
+        showing the context menu for a link or image; rename to match the name of the method we implement to match the
+        name of the UIKit delegate method.
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        (-[WKContentView contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]):
+        (-[WKContentView contextMenuInteraction:configuration:previewForHighlightingItemWithIdentifier:]): Deleted.
+
 2022-04-22  Elliott Williams  <[email protected]>
 
         [Xcode] Compute PGO profdata paths instead of searching for them at build time

Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (293447 => 293448)


--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2022-04-26 21:22:28 UTC (rev 293447)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm	2022-04-26 21:24:20 UTC (rev 293448)
@@ -11892,7 +11892,7 @@
     return [_actionSheetAssistant suggestedActionsForContextMenuWithPositionInformation:_positionInformation];
 }
 
-- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configuration:(UIContextMenuConfiguration *)configuration previewForHighlightingItemWithIdentifier:(id<NSCopying>)identifier
+- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configuration:(UIContextMenuConfiguration *)configuration highlightPreviewForItemWithIdentifier:(id<NSCopying>)identifier
 {
     [self _startSuppressingSelectionAssistantForReason:WebKit::InteractionIsHappening];
     [self _cancelTouchEventGestureRecognizer];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to