Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: de89ec12b9a340f3482065df31015cdc4b15b5e6
      
https://github.com/WebKit/WebKit/commit/de89ec12b9a340f3482065df31015cdc4b15b5e6
  Author: Sam Weinig <[email protected]>
  Date:   2025-10-31 (Fri, 31 Oct 2025)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    M 
Source/WebCore/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/animation/WebAnimationUtilities.cpp
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/scripts/process-css-properties.py
    M Source/WebCore/css/scripts/test/TestCSSProperties.json
    M 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSPropertyNames.gperf
    M 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSPropertyNames.h
    M 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSPropertyParsing.cpp
    M 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/CSSStyleProperties+PropertyNames.idl
    M 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StyleBuilderGenerated.cpp
    M 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StyleExtractorGenerated.cpp
    M 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StyleInterpolationWrapperMap.cpp
    M 
Source/WebCore/css/scripts/test/TestCSSPropertiesResults/StylePropertyShorthandFunctions.cpp
    M Source/WebCore/page/ElementTargetingController.cpp
    M Source/WebCore/page/InteractionRegion.cpp
    M Source/WebCore/page/LocalFrameView.cpp
    M Source/WebCore/rendering/BackgroundPainter.cpp
    M Source/WebCore/rendering/InlineBoxPainter.cpp
    M Source/WebCore/rendering/ReferencedSVGResources.cpp
    M Source/WebCore/rendering/RenderBox.cpp
    M Source/WebCore/rendering/RenderElement.cpp
    M Source/WebCore/rendering/RenderImage.cpp
    M Source/WebCore/rendering/RenderInline.cpp
    M Source/WebCore/rendering/RenderLayer.cpp
    M Source/WebCore/rendering/RenderLayerBacking.cpp
    M Source/WebCore/rendering/RenderLayerCompositor.cpp
    M Source/WebCore/rendering/RenderLayerModelObject.cpp
    M Source/WebCore/rendering/RenderTableCell.cpp
    M Source/WebCore/rendering/RenderView.cpp
    M Source/WebCore/rendering/TextPaintStyle.cpp
    M Source/WebCore/rendering/ios/RenderThemeIOS.mm
    M Source/WebCore/rendering/style/RenderStyle.cpp
    M Source/WebCore/rendering/style/RenderStyle.h
    M Source/WebCore/rendering/style/RenderStyleConstants.h
    M Source/WebCore/rendering/style/RenderStyleInlines.h
    M Source/WebCore/rendering/style/StyleBackgroundData.h
    M Source/WebCore/rendering/style/StyleMiscNonInheritedData.h
    M Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp
    M Source/WebCore/rendering/svg/legacy/SVGResources.cpp
    M Source/WebCore/rendering/svg/legacy/SVGResourcesCache.cpp
    M Source/WebCore/style/StyleAdjuster.cpp
    M Source/WebCore/style/StyleBuilderConverter.h
    M Source/WebCore/style/StyleBuilderCustom.h
    M Source/WebCore/style/StyleExtractorConverter.h
    M Source/WebCore/style/StyleExtractorCustom.h
    M Source/WebCore/style/StyleExtractorSerializer.h
    M Source/WebCore/style/StyleInterpolationWrappers.h
    M Source/WebCore/style/StylePendingResources.cpp
    M Source/WebCore/style/Styleable.cpp
    M Source/WebCore/style/values/animations/StyleAnimation.cpp
    M Source/WebCore/style/values/animations/StyleAnimation.h
    M Source/WebCore/style/values/backgrounds/StyleBackgroundLayer.cpp
    M Source/WebCore/style/values/backgrounds/StyleBackgroundLayer.h
    A Source/WebCore/style/values/backgrounds/StyleBackgroundLayers.h
    M Source/WebCore/style/values/backgrounds/StyleFillLayers.h
    M Source/WebCore/style/values/masking/StyleMaskLayer.cpp
    M Source/WebCore/style/values/masking/StyleMaskLayer.h
    A Source/WebCore/style/values/masking/StyleMaskLayers.h
    M Source/WebCore/style/values/primitives/StyleCoordinatedValueList.h
    A Source/WebCore/style/values/primitives/StyleCoordinatedValueListValue.h
    M Source/WebCore/style/values/transitions/StyleSingleTransitionProperty.h
    M Source/WebCore/style/values/transitions/StyleTransition.cpp
    M Source/WebCore/style/values/transitions/StyleTransition.h
    M Tools/Scripts/webkitpy/style/checkers/jsonchecker.py

  Log Message:
  -----------
  [Style] Merge animation/transition and background/mask list code
https://bugs.webkit.org/show_bug.cgi?id=301581

Reviewed by Darin Adler.

Unifies the implementations of background, mask, animation and transition
coordinated list values around Style::CoordinatedListValue. To make this
a bit less code to manually write, a set of macros have been added that
simplify adding unset/set/filled state for each property.

While mostly the same, background/mask and animation/transition differ in
what they return from getComputedStyle, with background/mask returning
values based on the filtered (used) values and background/mask returning
values based on the unfiltered (computed) values. To indicate this to the
extractor, the style types have a constexpr bool, `computedValueUsesUsedValues`,
that behavior is conditionalized on.

* Source/WebCore/Headers.cmake:
* Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:
* 
Source/WebCore/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/animation/WebAnimationUtilities.cpp:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/scripts/process-css-properties.py:
* Source/WebCore/page/ElementTargetingController.cpp:
* Source/WebCore/page/InteractionRegion.cpp:
* Source/WebCore/page/LocalFrameView.cpp:
* Source/WebCore/rendering/BackgroundPainter.cpp:
* Source/WebCore/rendering/InlineBoxPainter.cpp:
* Source/WebCore/rendering/ReferencedSVGResources.cpp:
* Source/WebCore/rendering/RenderBox.cpp:
* Source/WebCore/rendering/RenderElement.cpp:
* Source/WebCore/rendering/RenderImage.cpp:
* Source/WebCore/rendering/RenderInline.cpp:
* Source/WebCore/rendering/RenderLayer.cpp:
* Source/WebCore/rendering/RenderLayerBacking.cpp:
* Source/WebCore/rendering/RenderLayerCompositor.cpp:
* Source/WebCore/rendering/RenderLayerModelObject.cpp:
* Source/WebCore/rendering/RenderTableCell.cpp:
* Source/WebCore/rendering/RenderView.cpp:
* Source/WebCore/rendering/TextPaintStyle.cpp:
* Source/WebCore/rendering/ios/RenderThemeIOS.mm:
* Source/WebCore/rendering/style/RenderStyle.cpp:
* Source/WebCore/rendering/style/RenderStyle.h:
* Source/WebCore/rendering/style/RenderStyleConstants.h:
* Source/WebCore/rendering/style/RenderStyleInlines.h:
* Source/WebCore/rendering/style/StyleBackgroundData.h:
* Source/WebCore/rendering/style/StyleMiscNonInheritedData.h:
* Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp:
* Source/WebCore/rendering/svg/legacy/SVGResources.cpp:
* Source/WebCore/rendering/svg/legacy/SVGResourcesCache.cpp:
* Source/WebCore/style/StyleAdjuster.cpp:
* Source/WebCore/style/StyleBuilderConverter.h:
* Source/WebCore/style/StyleBuilderCustom.h:
* Source/WebCore/style/StyleExtractorConverter.h:
* Source/WebCore/style/StyleExtractorCustom.h:
* Source/WebCore/style/StyleExtractorSerializer.h:
* Source/WebCore/style/StyleInterpolationWrappers.h:
* Source/WebCore/style/StylePendingResources.cpp:
* Source/WebCore/style/Styleable.cpp:
* Source/WebCore/style/values/animations/StyleAnimation.cpp:
* Source/WebCore/style/values/animations/StyleAnimation.h:
* Source/WebCore/style/values/backgrounds/StyleBackgroundLayer.cpp:
* Source/WebCore/style/values/backgrounds/StyleBackgroundLayer.h:
* Source/WebCore/style/values/backgrounds/StyleBackgroundLayers.h: Added.
* Source/WebCore/style/values/backgrounds/StyleFillLayers.h:
* Source/WebCore/style/values/masking/StyleMaskLayer.cpp:
* Source/WebCore/style/values/masking/StyleMaskLayer.h:
* Source/WebCore/style/values/masking/StyleMaskLayers.h: Added.
* Source/WebCore/style/values/primitives/StyleCoordinatedValueList.h:
* Source/WebCore/style/values/primitives/StyleCoordinatedValueListValue.h: 
Added.
* Source/WebCore/style/values/transitions/StyleSingleTransitionProperty.h:
* Source/WebCore/style/values/transitions/StyleTransition.cpp:
* Source/WebCore/style/values/transitions/StyleTransition.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to