Changeset 291158 in webkit


Ignore:
Timestamp:
Mar 11, 2022 6:01:39 AM (4 months ago)
Author:
graouts@webkit.org
Message:

[web-animations] mask-type should support discrete animation
https://bugs.webkit.org/show_bug.cgi?id=237768

Reviewed by Antti Koivisto.

LayoutTests/imported/w3c:

  • web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt:
  • web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt:
  • web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt:

Source/WebCore:

  • animation/CSSPropertyAnimation.cpp:

(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r291157 r291158  
     12022-03-11  Antoine Quint  <graouts@webkit.org>
     2
     3        [web-animations] mask-type should support discrete animation
     4        https://bugs.webkit.org/show_bug.cgi?id=237768
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt:
     9        * web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt:
     10        * web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt:
     11
    1122022-03-11  Antoine Quint  <graouts@webkit.org>
    213
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt

    r291157 r291158  
    4444PASS mask-origin: "border-box" onto "content-box"
    4545PASS mask-origin: "content-box" onto "border-box"
     46PASS mask-type (type: discrete) has testAccumulation function
     47PASS mask-type: "luminance" onto "alpha"
     48PASS mask-type: "alpha" onto "luminance"
    4649PASS mix-blend-mode (type: discrete) has testAccumulation function
    4750PASS mix-blend-mode: "screen" onto "multiply"
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt

    r291157 r291158  
    4444PASS mask-origin: "border-box" onto "content-box"
    4545PASS mask-origin: "content-box" onto "border-box"
     46PASS mask-type (type: discrete) has testAddition function
     47PASS mask-type: "luminance" onto "alpha"
     48PASS mask-type: "alpha" onto "luminance"
    4649PASS mix-blend-mode (type: discrete) has testAddition function
    4750PASS mix-blend-mode: "screen" onto "multiply"
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt

    r291157 r291158  
    5555PASS mask-origin uses discrete animation when animating between "content-box" and "border-box" with effect easing
    5656PASS mask-origin uses discrete animation when animating between "content-box" and "border-box" with keyframe easing
     57PASS mask-type (type: discrete) has testInterpolation function
     58PASS mask-type uses discrete animation when animating between "alpha" and "luminance" with linear easing
     59PASS mask-type uses discrete animation when animating between "alpha" and "luminance" with effect easing
     60PASS mask-type uses discrete animation when animating between "alpha" and "luminance" with keyframe easing
    5761PASS mix-blend-mode (type: discrete) has testInterpolation function
    5862PASS mix-blend-mode uses discrete animation when animating between "multiply" and "screen" with linear easing
  • trunk/Source/WebCore/ChangeLog

    r291157 r291158  
     12022-03-11  Antoine Quint  <graouts@webkit.org>
     2
     3        [web-animations] mask-type should support discrete animation
     4        https://bugs.webkit.org/show_bug.cgi?id=237768
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * animation/CSSPropertyAnimation.cpp:
     9        (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
     10
    1112022-03-11  Antoine Quint  <graouts@webkit.org>
    212
  • trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp

    r291157 r291158  
    32503250        new DiscretePropertyWrapper<bool>(CSSPropertyScrollBehavior, &RenderStyle::useSmoothScrolling, &RenderStyle::setUseSmoothScrolling),
    32513251        new DiscreteFontDescriptionTypedWrapper<TextRenderingMode>(CSSPropertyTextRendering, &FontCascadeDescription::textRenderingMode, &FontCascadeDescription::setTextRenderingMode),
     3252        new DiscreteSVGPropertyWrapper<MaskType>(CSSPropertyMaskType, &SVGRenderStyle::maskType, &SVGRenderStyle::setMaskType)
    32523253    };
    32533254    const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers);
Note: See TracChangeset for help on using the changeset viewer.