Changeset 291163 in webkit


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

[web-animations] stroke-linecap should support discrete animation
https://bugs.webkit.org/show_bug.cgi?id=237763

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

    r291161 r291163  
     12022-03-11  Antoine Quint  <graouts@webkit.org>
     2
     3        [web-animations] stroke-linecap should support discrete animation
     4        https://bugs.webkit.org/show_bug.cgi?id=237763
     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

    r291161 r291163  
    153153PASS stroke-dasharray: "10px, 20px" onto "none"
    154154PASS stroke-dasharray: "none" onto "10px, 20px"
     155PASS stroke-linecap (type: discrete) has testAccumulation function
     156PASS stroke-linecap: "square" onto "round"
     157PASS stroke-linecap: "round" onto "square"
    155158PASS stroke-miterlimit (type: positiveNumber) has testAccumulation function
    156159PASS stroke-miterlimit: positive number
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt

    r291161 r291163  
    153153PASS stroke-dasharray: "10px, 20px" onto "none"
    154154PASS stroke-dasharray: "none" onto "10px, 20px"
     155PASS stroke-linecap (type: discrete) has testAddition function
     156PASS stroke-linecap: "square" onto "round"
     157PASS stroke-linecap: "round" onto "square"
    155158PASS stroke-miterlimit (type: positiveNumber) has testAddition function
    156159PASS stroke-miterlimit: positive number
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt

    r291161 r291163  
    184184PASS stroke-dasharray uses discrete animation when animating between "none" and "10px, 20px" with effect easing
    185185PASS stroke-dasharray uses discrete animation when animating between "none" and "10px, 20px" with keyframe easing
     186PASS stroke-linecap (type: discrete) has testInterpolation function
     187PASS stroke-linecap uses discrete animation when animating between "round" and "square" with linear easing
     188PASS stroke-linecap uses discrete animation when animating between "round" and "square" with effect easing
     189PASS stroke-linecap uses discrete animation when animating between "round" and "square" with keyframe easing
    186190PASS stroke-miterlimit (type: positiveNumber) has testInterpolation function
    187191PASS stroke-miterlimit supports animating as a positive number
  • trunk/Source/WebCore/ChangeLog

    r291162 r291163  
     12022-03-11  Antoine Quint  <graouts@webkit.org>
     2
     3        [web-animations] stroke-linecap should support discrete animation
     4        https://bugs.webkit.org/show_bug.cgi?id=237763
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * animation/CSSPropertyAnimation.cpp:
     9        (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
     10
    1112022-03-11  Rob Buis  <rbuis@igalia.com>
    212
  • trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp

    r291161 r291163  
    32623262        new DiscretePropertyWrapper<bool>(CSSPropertyScrollBehavior, &RenderStyle::useSmoothScrolling, &RenderStyle::setUseSmoothScrolling),
    32633263        new DiscreteFontDescriptionTypedWrapper<TextRenderingMode>(CSSPropertyTextRendering, &FontCascadeDescription::textRenderingMode, &FontCascadeDescription::setTextRenderingMode),
    3264         new DiscreteSVGPropertyWrapper<MaskType>(CSSPropertyMaskType, &SVGRenderStyle::maskType, &SVGRenderStyle::setMaskType)
     3264        new DiscreteSVGPropertyWrapper<MaskType>(CSSPropertyMaskType, &SVGRenderStyle::maskType, &SVGRenderStyle::setMaskType),
     3265        new DiscretePropertyWrapper<LineCap>(CSSPropertyStrokeLinecap, &RenderStyle::capStyle, &RenderStyle::setCapStyle)
    32653266    };
    32663267    const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers);
Note: See TracChangeset for help on using the changeset viewer.