Build fix.
[WebKit-https.git] / Source / WebKit / mac / WebView / WebActionMenuController.mm
index 0c04c5b..a46fb9b 100644 (file)
@@ -282,7 +282,7 @@ static IntRect elementBoundingBoxInWindowCoordinatesFromNode(Node* node)
     RetainPtr<NSMenuItem> openLinkItem = [self _createActionMenuItemForTag:WebActionMenuItemTagOpenLinkInDefaultBrowser];
 
     RetainPtr<QLPreviewMenuItem> previewLinkItem;
-    if ([NSMenuItem instancesRespondToSelector:@selector(standardQuickLookMenuItem)]) {
+    if ([NSMenuItem respondsToSelector:@selector(standardQuickLookMenuItem)]) {
         previewLinkItem = [NSMenuItem standardQuickLookMenuItem];
         [previewLinkItem setPreviewStyle:QLPreviewStylePopover];
         [previewLinkItem setDelegate:self];