[Mac][WebKit2] Move action menu code into its own file
[WebKit-https.git] / Source / WebKit2 / UIProcess / mac / WKActionMenuController.mm
index a31f971eb9a683b3c03d86cbd2b9c5db167ece62..00d68e9bf9e137eb01fffe83b8ca77a42f26b2ea 100644 (file)
@@ -106,7 +106,7 @@ enum class ActionMenuState {
 
     [self _updateActionMenuItems];
 
-    _page->performActionMenuHitTestAtLocation([_wkView convertPoint:[event locationInWindow] fromView:nil]);
+    _page->performActionMenuHitTestAtLocation([_wkView convertPoint:event.locationInWindow fromView:nil]);
 
     _state = ActionMenuState::Pending;
 }
@@ -278,7 +278,7 @@ static NSString *pathToPhotoOnDisk(NSString *suggestedFilename)
 
 - (void)_addImageToPhotos:(id)sender
 {
-    // FIXME: We shouldn't even add the button if this is the case, for now.
+    // FIXME: We shouldn't even add the menu item if this is the case, for now.
     if (![getIKSlideshowClass() canExportToApplication:@"com.apple.Photos"])
         return;