Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0dce5e774ce4877e4170b53e3ff5dff96b9d083f
      
https://github.com/WebKit/WebKit/commit/0dce5e774ce4877e4170b53e3ff5dff96b9d083f
  Author: Sam Weinig <[email protected]>
  Date:   2025-02-27 (Thu, 27 Feb 2025)

  Changed paths:
    M Source/WebCore/CMakeLists.txt
    M Source/WebCore/DerivedSources-output.xcfilelist
    M Source/WebCore/DerivedSources.make
    M Source/WebCore/Headers.cmake
    M Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    M Source/WebCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/animation/BlendingKeyframes.cpp
    R Source/WebCore/animation/CSSPropertyAnimation.cpp
    R Source/WebCore/animation/CSSPropertyAnimation.h
    R Source/WebCore/animation/CSSPropertyBlendingClient.h
    M Source/WebCore/animation/KeyframeEffect.cpp
    M Source/WebCore/animation/KeyframeEffect.h
    M Source/WebCore/animation/KeyframeEffectStack.cpp
    M Source/WebCore/animation/KeyframeInterpolation.cpp
    M Source/WebCore/animation/KeyframeInterpolation.h
    M Source/WebCore/animation/WebAnimation.cpp
    M Source/WebCore/css/CSSComputedStyleDeclaration.cpp
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/CSSProperty.h
    M Source/WebCore/css/ComputedStyleExtractor.cpp
    M Source/WebCore/css/process-css-properties.py
    M Source/WebCore/platform/Length.h
    M Source/WebCore/platform/animation/AcceleratedEffect.cpp
    M Source/WebCore/rendering/style/RenderStyle.cpp
    M Source/WebCore/rendering/style/RenderStyle.h
    M Source/WebCore/rendering/style/RenderStyleInlines.h
    M Source/WebCore/rendering/style/ShadowData.h
    A Source/WebCore/style/StyleInterpolation.cpp
    A Source/WebCore/style/StyleInterpolation.h
    A Source/WebCore/style/StyleInterpolationClient.h
    A Source/WebCore/style/StyleInterpolationContext.h
    A Source/WebCore/style/StyleInterpolationFunctions.h
    A Source/WebCore/style/StyleInterpolationWrapperBase.h
    A Source/WebCore/style/StyleInterpolationWrappers.h
    M Source/WebCore/style/Styleable.cpp
    M Tools/Scripts/webkitpy/style/checkers/jsonchecker.py

  Log Message:
  -----------
  Generate interpolation wrapper map (formerly the CSS animation property 
wrapper map)
https://bugs.webkit.org/show_bug.cgi?id=287878

Reviewed by Antti Koivisto and Darin Adler.

Moves generation of the interpolation wrapper map, formerly called the
CSS animation property wrapper map, to be generated from details in
CSSProperties.json. The main benefit right now, other than having the
details localized, is that this automatically allows generation of the
correct shorthand wrappers based on which longhands have wrappers.

To go with the generation, the wrapper and blend functions have been split
into their own files, and they have all been moved into a new namespace:
`Style::Interpolation`. This is motivated by:
  - the code operates on post-style building data structures, which now
    use the Style prefix/namespacing.
  - the code will be used for more than just animation in the future
    with the introduction of explicit means to interpolate from css.

* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-output.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/Headers.cmake:
* Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:
* Source/WebCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
    - Add/rename files.

* Source/WebCore/css/process-css-properties.py:
* Source/WebCore/css/CSSProperties.json:
    - Adds generation of the wrapper map from new animation-wrapper-* properties
      added to CSSProperties.json.

* Source/WebCore/rendering/style/RenderStyle.cpp:
* Source/WebCore/rendering/style/RenderStyle.h:
* Source/WebCore/rendering/style/RenderStyleInlines.h:
    - Renamed border image/mask slice getters/setter to match the property name 
and
      sibling properties, removing the trailing 's'.

* Source/WebCore/rendering/style/ShadowData.h:
    - Move function from CSSPropertyAnimation.cpp so it can be used by multiple 
files.

* Source/WebCore/platform/Length.h:
    - Move function from CSSPropertyAnimation.cpp so it can be used by multiple 
files.

* Source/WebCore/style/StyleInterpolationClient.h: Renamed from 
Source/WebCore/animation/CSSPropertyBlendingClient.h.
    - Rename CSSPropertyBlendingClient to Style::Interpolation::Client, to 
match new naming.

* Source/WebCore/style/StyleInterpolation.cpp: Added.
* Source/WebCore/style/StyleInterpolation.h: Added.
* Source/WebCore/style/StyleInterpolationContext.h: Copied from 
Source/WebCore/animation/CSSPropertyAnimation.h.
* Source/WebCore/style/StyleInterpolationFunctions.h: Added.
* Source/WebCore/style/StyleInterpolationWrapperBase.h: Renamed from 
Source/WebCore/animation/CSSPropertyAnimation.h.
* Source/WebCore/style/StyleInterpolationWrappers.h: Added.
    - Split CSSPropertyAnimation.cpp up into a few files to make it a bit more 
manageable.
        The exported functions go to StyleInterpolation.h/cpp
        The base wrapper goes to StyleInterpolationWrapperBase.h
        The concrete wrappers go to StyleInterpolationWrappers.h
        The blend functions go to StyleInterpolationFunctions.
        The client goes to CSSPropertyBlendingClient.h
        The blending context goes to StyleInterpolationContext.h

* Source/WebCore/style/Styleable.cpp:
* Source/WebCore/animation/BlendingKeyframes.cpp:
* Source/WebCore/animation/CSSPropertyAnimation.cpp: Removed.
* Source/WebCore/animation/KeyframeEffect.cpp:
* Source/WebCore/animation/KeyframeEffect.h:
* Source/WebCore/animation/KeyframeEffectStack.cpp:
* Source/WebCore/animation/KeyframeInterpolation.cpp:
* Source/WebCore/animation/KeyframeInterpolation.h:
* Source/WebCore/animation/WebAnimation.cpp:
* Source/WebCore/css/CSSComputedStyleDeclaration.cpp:
* Source/WebCore/css/CSSProperty.h:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
* Source/WebCore/platform/animation/AcceleratedEffect.cpp:
    - Update for renames.

* Tools/Scripts/webkitpy/style/checkers/jsonchecker.py:
    - Update for new animation-wrapper-* properties in CSSProperties.json.

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