[webkit-changes] [WebKit/WebKit] 6128bf: Add API to allow transparent backgrounds when crea...
Richard Robinson
noreply at github.com
Wed Feb 15 14:21:38 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6128bfc2feebff15fdde6e8823e0531da36005a8
https://github.com/WebKit/WebKit/commit/6128bfc2feebff15fdde6e8823e0531da36005a8
Author: Richard Robinson <richard_robinson2 at apple.com>
Date: 2023-02-15 (Wed, 15 Feb 2023)
Changed paths:
M Source/WebKit/UIProcess/API/Cocoa/WKPDFConfiguration.h
M Source/WebKit/UIProcess/API/Cocoa/WKPDFConfiguration.mm
M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/WebProcess/WebPage/WebPage.cpp
M Source/WebKit/WebProcess/WebPage/WebPage.h
M Source/WebKit/WebProcess/WebPage/WebPage.messages.in
M Tools/TestWebKitAPI/Tests/WebKitCocoa/PDFSnapshot.mm
Log Message:
-----------
Add API to allow transparent backgrounds when creating a PDF
https://bugs.webkit.org/show_bug.cgi?id=250340
rdar://76982433
Reviewed by Simon Fraser.
Adds an API to allow PDFs to have a transparent background when being created,
instead of always forcing a white background.
* Source/WebCore/rendering/BackgroundPainter.cpp:
(WebCore::BackgroundPainter::paintFillLayers):
* Source/WebCore/rendering/PaintPhase.h:
* Source/WebCore/rendering/RenderLayer.cpp:
(WebCore::RenderLayer::paintLayerContents):
(WebCore::RenderLayer::calculateClipRects const):
* Source/WebKit/UIProcess/API/Cocoa/WKPDFConfiguration.h:
* Source/WebKit/UIProcess/API/Cocoa/WKPDFConfiguration.mm:
(-[WKPDFConfiguration init]):
(-[WKPDFConfiguration copyWithZone:]):
* Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView createPDFWithConfiguration:completionHandler:]):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::drawToPDF):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::drawToPDF):
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/WebPage.messages.in:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/PDFSnapshot.mm:
(TestWebKitAPI::TEST):
Canonical link: https://commits.webkit.org/260328@main
More information about the webkit-changes
mailing list