Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 56fcab9726612823eaa685fd915bfb18673d6dcb https://github.com/WebKit/WebKit/commit/56fcab9726612823eaa685fd915bfb18673d6dcb Author: Eric Carlson <eric.carl...@apple.com> Date: 2024-08-16 (Fri, 16 Aug 2024)
Changed paths: M Source/WTF/wtf/PlatformHave.h M Source/WebCore/PAL/pal/mac/ScreenCaptureKitSoftLink.h M Source/WebCore/PAL/pal/mac/ScreenCaptureKitSoftLink.mm M Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.h M Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h M Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm M Source/WebKit/UIProcess/mac/WKFullScreenWindowController.mm M Source/WebKit/UIProcess/mac/WebViewImpl.mm M Source/WebKitLegacy/mac/WebView/WebFullScreenController.mm M Source/WebKitLegacy/mac/WebView/WebView.mm M Source/WebKitLegacy/mac/WebView/WebViewPrivate.h M Tools/DumpRenderTree/mac/PixelDumpSupportMac.mm M Tools/MiniBrowser/mac/BrowserWindowController.h M Tools/MiniBrowser/mac/BrowserWindowController.m M Tools/MiniBrowser/mac/WK1BrowserWindowController.m M Tools/MiniBrowser/mac/WK2BrowserWindowController.m M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj A Tools/TestWebKitAPI/Tests/mac/WebViewSnapshot.mm A Tools/TestWebKitAPI/Tests/mac/checkered-background.html Log Message: ----------- Build fails with “'CGWindowListCreateImage' is unavailable: obsoleted in macOS 15.0” https://bugs.webkit.org/show_bug.cgi?id=277564 rdar://133237307 Reviewed by Jean-Yves Avenard `CGWindowListCreateImage` is obsolete and unavailable in macOS 15, so write a method that uses ScreenCaptureKit.framework to replace it. * Source/WTF/wtf/PlatformHave.h: * Source/WebCore/PAL/pal/mac/ScreenCaptureKitSoftLink.h: * Source/WebCore/PAL/pal/mac/ScreenCaptureKitSoftLink.mm: * Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.h: * Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm: (WebCore::ScreenCaptureKitCaptureSource::captureWindowSnapshot): * Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h: * Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm: (-[WKWebView _windowSnapshotInRect:]): * Source/WebKit/UIProcess/mac/WKFullScreenWindowController.mm: (-[WKFullScreenWindowController enterFullScreen:]): (takeWindowSnapshot): * Source/WebKit/UIProcess/mac/WebViewImpl.mm: (WebKit::takeWindowSnapshot): * Source/WebKitLegacy/mac/WebView/WebFullScreenController.mm: (-[WebFullScreenController enterFullScreen:]): * Source/WebKitLegacy/mac/WebView/WebView.mm: (-[WebView _windowSnapshotInRect:]): * Source/WebKitLegacy/mac/WebView/WebViewPrivate.h: * Tools/DumpRenderTree/mac/PixelDumpSupportMac.mm: (takeWindowSnapshot): (createBitmapContextFromWebView): * Tools/MiniBrowser/mac/BrowserWindowController.h: * Tools/MiniBrowser/mac/BrowserWindowController.m: (-[BrowserWindowController windowSnapshotInRect:]): (-[BrowserWindowController sharingService:transitionImageForShareItem:contentRect:]): * Tools/MiniBrowser/mac/WK1BrowserWindowController.m: (-[WK1BrowserWindowController windowSnapshotInRect:]): * Tools/MiniBrowser/mac/WK2BrowserWindowController.m: (-[WK2BrowserWindowController windowSnapshotInRect:]): * Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * Tools/TestWebKitAPI/Tests/mac/WebViewSnapshot.mm: Added. (TestWebKitAPI::writeImage): (TestWebKitAPI::TEST(WKWebView, WebViewSnapshot)): * Tools/TestWebKitAPI/Tests/mac/checkered-background.html: Added. Canonical link: https://commits.webkit.org/282351@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes