Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 17938d9bea0a62be0d39331598dd4929aa8407d4
      
https://github.com/WebKit/WebKit/commit/17938d9bea0a62be0d39331598dd4929aa8407d4
  Author: Aditya Keerthi <[email protected]>
  Date:   2025-02-18 (Tue, 18 Feb 2025)

  Changed paths:
    M Source/WebCore/css/CSSPrimitiveValueMappings.h
    M Source/WebCore/css/parser/CSSPropertyParserConsumer+AppleVisualEffect.cpp
    M Source/WebCore/platform/cocoa/AppleVisualEffect.cpp
    M Source/WebCore/platform/cocoa/AppleVisualEffect.h
    M Source/WebKit/Platform/cocoa/WKMaterialHostingSupport.h
    M Source/WebKit/Platform/cocoa/WKMaterialHostingSupport.swift
    M Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm
    M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
    M Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeViews.h
    M Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeViews.mm

  Log Message:
  -----------
  [Materials] Add support for a more translucent hosted material
https://bugs.webkit.org/show_bug.cgi?id=287818
rdar://145005735

Reviewed by Abrar Rahman Protyasha.

Introduce support for another type of hosted material, which is more translucent
than the material introduced in 290280@main.

* Source/WebCore/css/CSSPrimitiveValueMappings.h:
(WebCore::toCSSValueID):
(WebCore::fromCSSValueID):
* Source/WebCore/css/parser/CSSPropertyParserConsumer+AppleVisualEffect.cpp:
(WebCore::CSSPropertyParserHelpers::isKeywordValidForAppleVisualEffect):
* Source/WebCore/platform/cocoa/AppleVisualEffect.cpp:
(WebCore::appleVisualEffectNeedsBackdrop):
(WebCore::appleVisualEffectAppliesFilter):
(WebCore::appleVisualEffectIsHostedMaterial):
(WebCore::operator<<):
* Source/WebCore/platform/cocoa/AppleVisualEffect.h:
* Source/WebKit/Platform/cocoa/WKMaterialHostingSupport.h:

Introduce an enum to configure the type of hosted material.

* Source/WebKit/Platform/cocoa/WKMaterialHostingSupport.swift:
(MaterialHostingView.resolvedMaterialEffect(for:)):

Resolve the material type into a SwiftUI material.

(MaterialHostingView.body):

Apply the now-configurable material effect.

(CALayer.materialHostingContentLayer):

Drive-by fix. Remove unnecessary guard statement.

(WKMaterialHostingSupport.updateHostingLayer(_:materialEffectType:cornerRadius:)):
(WKMaterialHostingSupport.updateHostingView(_:contentView:materialEffectType:cornerRadius:)):
(WKMaterialHostingSupport.updateHostingLayer(_:cornerRadius:)): Deleted.
(WKMaterialHostingSupport.updateHostingView(_:contentView:cornerRadius:)): 
Deleted.
* Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm:
(WebKit::materialRecipeForAppleVisualEffect):
(WebKit::materialVisualStyleForAppleVisualEffect):
(WebKit::materialVisualStyleCategoryForAppleVisualEffect):
(WebKit::hostedMaterialEffectTypeForAppleVisualEffect):
(WebKit::updateAppleVisualEffect):
* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
* Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeViews.h:
* Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeViews.mm:
(-[WKMaterialHostingView updateMaterialEffectType:cornerRadius:]):
(-[WKMaterialHostingView updateCornerRadius:]): Deleted.

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