Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9b1d9b6a9a00562ec01735970c7c10bb51a593d0
      
https://github.com/WebKit/WebKit/commit/9b1d9b6a9a00562ec01735970c7c10bb51a593d0
  Author: Abrar Rahman Protyasha <[email protected]>
  Date:   2025-06-10 (Tue, 10 Jun 2025)

  Changed paths:
    M Source/WTF/wtf/PlatformHave.h
    M Source/WebKit/Configurations/WebKit.xcconfig
    M Source/WebKit/DerivedSources-output.xcfilelist
    M Source/WebKit/DerivedSources.make
    M Source/WebKit/Modules/Internal/WebKitInternal.h
    M Source/WebKit/UIProcess/PDF/WKPDFPageNumberIndicator.h
    M Source/WebKit/UIProcess/PDF/WKPDFPageNumberIndicator.mm
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  [UnifiedPDF] [iOS] Adopt Liquid Glass in the PDF page number indicator
https://bugs.webkit.org/show_bug.cgi?id=294252
rdar://152948100

Reviewed by Megan Gardner and Aditya Keerthi.

This patch adopts the Liquid Glass material in the PDF page number
indicator. We do so by using the UIGlassEffect visual effect available
in iOS 26-aligned SDKs. Note that we limit this behavior to non-visionOS
user interface types. For visionOS user interfaces (and for older iOS
versions), we fall back to the shipping UIBlurEffect-driven backdrop
view.

This patch also constitues the "upstreaming" of the glassy part of the
page number indicator, but we no longer call into Swift-only API, and
can thus just remove references to WKPDFPageNumberIndicator.swift
entirely.

* Source/WTF/wtf/PlatformHave.h:
Introduce a platform availability definition for UIGlassEffect.
* Source/WebKit/Configurations/WebKit.xcconfig:
* Source/WebKit/DerivedSources-output.xcfilelist:
* Source/WebKit/DerivedSources.make:
* Source/WebKit/Modules/Internal/WebKitInternal.h:
Remove unnecessary include since no Swift source needs access to
WKPDFPageNumberIndicator.h anymore.
* Source/WebKit/UIProcess/PDF/WKPDFPageNumberIndicator.h:
Remove the backdropView property declaration since it no longer needs to
be accessed outside of the page number indicator implementation.
* Source/WebKit/UIProcess/PDF/WKPDFPageNumberIndicator.mm:
(-[WKPDFPageNumberIndicator initWithFrame:view:pageCount:]):
(-[WKPDFPageNumberIndicator backdropView]): Deleted.
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

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