[webkit-changes] [WebKit/WebKit] 780a84: visionOS: backdrop-filter in a transparent web vie...

Tim Horton noreply at github.com
Mon Sep 11 12:59:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 780a84bad82a6f368abb6de667dc983fdd14ef5b
      https://github.com/WebKit/WebKit/commit/780a84bad82a6f368abb6de667dc983fdd14ef5b
  Author: Tim Horton <thorton at apple.com>
  Date:   2023-09-11 (Mon, 11 Sep 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm

  Log Message:
  -----------
  visionOS: backdrop-filter in a transparent web view on top of material background renders black
https://bugs.webkit.org/show_bug.cgi?id=261419
rdar://112798317

Reviewed by Mike Wyrzykowski.

* Source/WebCore/platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm:
(WebCore::PlatformCAFilters::setFiltersOnLayer):
Use the visionOS-specific `normalizeEdgesTransparent` filter option in order
to make backdrops render correctly on top of material backgrounds.

Technically we only need this in cases where we're on top of a material, and could
use the cheaper `normalizeEdges` in the opaque-web-view case, but that would
require plumbing that knowledge through the fairly-distant filter application code.

Canonical link: https://commits.webkit.org/267875@main




More information about the webkit-changes mailing list