Title: [293363] trunk/Source/WebKit
- Revision
- 293363
- Author
- [email protected]
- Date
- 2022-04-25 15:24:20 -0700 (Mon, 25 Apr 2022)
Log Message
Unreviewed, fix the macOS Monterey build after r293340
https://bugs.webkit.org/show_bug.cgi?id=239712
* UIProcess/mac/WebContextMenuProxyMac.mm:
(WebKit::WebContextMenuProxyMac::getContextMenuFromItems):
Put some of the "Copy Cropped Image" logic here behind ENABLE(IMAGE_ANALYSIS_ENHANCEMENTS), instead of just
ENABLE(IMAGE_ANALYSIS).
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (293362 => 293363)
--- trunk/Source/WebKit/ChangeLog 2022-04-25 22:03:28 UTC (rev 293362)
+++ trunk/Source/WebKit/ChangeLog 2022-04-25 22:24:20 UTC (rev 293363)
@@ -1,5 +1,16 @@
2022-04-25 Wenson Hsieh <[email protected]>
+ Unreviewed, fix the macOS Monterey build after r293340
+ https://bugs.webkit.org/show_bug.cgi?id=239712
+
+ * UIProcess/mac/WebContextMenuProxyMac.mm:
+ (WebKit::WebContextMenuProxyMac::getContextMenuFromItems):
+
+ Put some of the "Copy Cropped Image" logic here behind ENABLE(IMAGE_ANALYSIS_ENHANCEMENTS), instead of just
+ ENABLE(IMAGE_ANALYSIS).
+
+2022-04-25 Wenson Hsieh <[email protected]>
+
[macOS] Only show a context menu action to "Copy Cropped Image" when appropriate
https://bugs.webkit.org/show_bug.cgi?id=239712
rdar://92239384
Modified: trunk/Source/WebKit/UIProcess/mac/WebContextMenuProxyMac.mm (293362 => 293363)
--- trunk/Source/WebKit/UIProcess/mac/WebContextMenuProxyMac.mm 2022-04-25 22:03:28 UTC (rev 293362)
+++ trunk/Source/WebKit/UIProcess/mac/WebContextMenuProxyMac.mm 2022-04-25 22:24:20 UTC (rev 293363)
@@ -655,7 +655,10 @@
[protectedThis->m_menu addItem:createMenuActionItem(lookUpImageItem).get()];
});
}
-
+#else
+ UNUSED_PARAM(imageURL);
+#endif
+#if ENABLE(IMAGE_ANALYSIS_ENHANCEMENTS)
if (copyCroppedImageItem) {
if (auto image = imageBitmap->makeCGImageCopy()) {
page->setCroppedImageForContextMenu(nullptr);
@@ -673,7 +676,7 @@
}
}
#else
- UNUSED_PARAM(imageURL);
+ UNUSED_PARAM(copyCroppedImageItem);
#endif
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes