Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2f65bcd3eb698bd2abd2335a47709469877aa70b
https://github.com/WebKit/WebKit/commit/2f65bcd3eb698bd2abd2335a47709469877aa70b
Author: Richard Robinson <[email protected]>
Date: 2025-06-11 (Wed, 11 Jun 2025)
Changed paths:
M Source/WTF/wtf/PlatformHave.h
M Source/WebCore/PAL/pal/spi/cg/CoreGraphicsSPI.h
M Tools/TestWebKitAPI/Configurations/TestWebKitAPILibrary.xcconfig
A Tools/TestWebKitAPI/TestPDFDocument.h
A Tools/TestWebKitAPI/TestPDFDocument.swift
M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
M Tools/TestWebKitAPI/Tests/WebKit
Swift/TestWebKitAPIBundle-Bridging-Header.h
M Tools/TestWebKitAPI/Tests/WebKitCocoa/DrawingToPDF.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/PDFSnapshot.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/UnifiedPDFTests.mm
M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewPrintFormatter.mm
R Tools/TestWebKitAPI/cocoa/TestPDFDocument.h
R Tools/TestWebKitAPI/cocoa/TestPDFDocument.mm
M Tools/TestWebKitAPI/config.h
Log Message:
-----------
[Swift in WebKit] Convert TestPDFDocument from Obj-C++ to ObjSwift
https://bugs.webkit.org/show_bug.cgi?id=294271
rdar://152980107
Reviewed by Aditya Keerthi and Abrar Rahman Protyasha.
To support using TestPDFDocument from Swift, it needs to stop using C++. To
facilitate this,
the type no longer uses C++, and instead uses an Obj-C interface with a Swift
implementation.
This has the added benefit of laying more foundation and infrastrcuture to make
writing tests in Swift easier,
as well as setting good precedent.
* Source/WebCore/PAL/pal/spi/cg/CoreGraphicsSPI.h:
Compile out C++ specific parts of this file when it's being compiled for
C/Swift.
* Tools/TestWebKitAPI/Configurations/TestWebKitAPILibrary.xcconfig:
Add Swift support to TestWebKitAPILibrary.
* Tools/TestWebKitAPI/TestPDFDocument.h: Added.
* Tools/TestWebKitAPI/TestPDFDocument.swift: Added.
* Tools/TestWebKitAPI/Tests/WebKitCocoa/DrawingToPDF.mm:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/PDFSnapshot.mm:
* Tools/TestWebKitAPI/cocoa/TestPDFDocument.h: Removed.
* Tools/TestWebKitAPI/cocoa/TestPDFDocument.mm: Removed.
Port the type to ObjSwift.
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WebKit Swift/TestWebKitAPIBundle-Bridging-Header.h:
Canonical link: https://commits.webkit.org/296104@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes