Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 86d17dda5f113cbfe9ae0c6f5b1d4561e6781872
      
https://github.com/WebKit/WebKit/commit/86d17dda5f113cbfe9ae0c6f5b1d4561e6781872
  Author: Brent Fulgham <[email protected]>
  Date:   2025-05-21 (Wed, 21 May 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/mac/PDFDocumentImageMac.mm
    M Source/WebKit/UIProcess/mac/WKPrintingView.mm

  Log Message:
  -----------
  Switch from deprecated `[PDFPage drawWithBox:]` to modern `[PDFPage 
drawWithBox:toContext:]`
https://bugs.webkit.org/show_bug.cgi?id=293247
rdar://151640250

Reviewed by Abrar Rahman Protyasha.

We already do this in most places in the modern PDF code, but two code paths
were still using the deprecated form. No detectable change in behavior, but
this change could reduce time spent by the PDF code needed to find the
correct context to use.

* Source/WebCore/platform/graphics/mac/PDFDocumentImageMac.mm:
(WebCore::PDFDocumentImage::drawPDFPage):
* Source/WebKit/UIProcess/mac/WKPrintingView.mm:
(-[WKPrintingView _drawPDFDocument:page:atPoint:]):

Canonical link: https://commits.webkit.org/295232@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

Reply via email to