Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (291162 => 291163)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2022-03-11 14:19:05 UTC (rev 291162)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2022-03-11 14:23:34 UTC (rev 291163)
@@ -1,5 +1,16 @@
2022-03-11 Antoine Quint <[email protected]>
+ [web-animations] stroke-linecap should support discrete animation
+ https://bugs.webkit.org/show_bug.cgi?id=237763
+
+ Reviewed by Antti Koivisto.
+
+ * 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:
+
+2022-03-11 Antoine Quint <[email protected]>
+
[web-animations] mask-repeat should support discrete animation
https://bugs.webkit.org/show_bug.cgi?id=237771
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt (291162 => 291163)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt 2022-03-11 14:19:05 UTC (rev 291162)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt 2022-03-11 14:23:34 UTC (rev 291163)
@@ -152,6 +152,9 @@
PASS stroke-dasharray (type: discrete) has testAccumulation function
PASS stroke-dasharray: "10px, 20px" onto "none"
PASS stroke-dasharray: "none" onto "10px, 20px"
+PASS stroke-linecap (type: discrete) has testAccumulation function
+PASS stroke-linecap: "square" onto "round"
+PASS stroke-linecap: "round" onto "square"
PASS stroke-miterlimit (type: positiveNumber) has testAccumulation function
PASS stroke-miterlimit: positive number
PASS stroke-opacity (type: opacity) has testAccumulation function
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt (291162 => 291163)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt 2022-03-11 14:19:05 UTC (rev 291162)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt 2022-03-11 14:23:34 UTC (rev 291163)
@@ -152,6 +152,9 @@
PASS stroke-dasharray (type: discrete) has testAddition function
PASS stroke-dasharray: "10px, 20px" onto "none"
PASS stroke-dasharray: "none" onto "10px, 20px"
+PASS stroke-linecap (type: discrete) has testAddition function
+PASS stroke-linecap: "square" onto "round"
+PASS stroke-linecap: "round" onto "square"
PASS stroke-miterlimit (type: positiveNumber) has testAddition function
PASS stroke-miterlimit: positive number
PASS stroke-opacity (type: opacity) has testAddition function
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt (291162 => 291163)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt 2022-03-11 14:19:05 UTC (rev 291162)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt 2022-03-11 14:23:34 UTC (rev 291163)
@@ -183,6 +183,10 @@
PASS stroke-dasharray uses discrete animation when animating between "none" and "10px, 20px" with linear easing
PASS stroke-dasharray uses discrete animation when animating between "none" and "10px, 20px" with effect easing
PASS stroke-dasharray uses discrete animation when animating between "none" and "10px, 20px" with keyframe easing
+PASS stroke-linecap (type: discrete) has testInterpolation function
+PASS stroke-linecap uses discrete animation when animating between "round" and "square" with linear easing
+PASS stroke-linecap uses discrete animation when animating between "round" and "square" with effect easing
+PASS stroke-linecap uses discrete animation when animating between "round" and "square" with keyframe easing
PASS stroke-miterlimit (type: positiveNumber) has testInterpolation function
PASS stroke-miterlimit supports animating as a positive number
PASS stroke-opacity (type: opacity) has testInterpolation function
Modified: trunk/Source/WebCore/ChangeLog (291162 => 291163)
--- trunk/Source/WebCore/ChangeLog 2022-03-11 14:19:05 UTC (rev 291162)
+++ trunk/Source/WebCore/ChangeLog 2022-03-11 14:23:34 UTC (rev 291163)
@@ -1,3 +1,13 @@
+2022-03-11 Antoine Quint <[email protected]>
+
+ [web-animations] stroke-linecap should support discrete animation
+ https://bugs.webkit.org/show_bug.cgi?id=237763
+
+ Reviewed by Antti Koivisto.
+
+ * animation/CSSPropertyAnimation.cpp:
+ (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
+
2022-03-11 Rob Buis <[email protected]>
Rename invalidation methods in SVGElement
Modified: trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp (291162 => 291163)
--- trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2022-03-11 14:19:05 UTC (rev 291162)
+++ trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2022-03-11 14:23:34 UTC (rev 291163)
@@ -3261,7 +3261,8 @@
new QuotesWrapper,
new DiscretePropertyWrapper<bool>(CSSPropertyScrollBehavior, &RenderStyle::useSmoothScrolling, &RenderStyle::setUseSmoothScrolling),
new DiscreteFontDescriptionTypedWrapper<TextRenderingMode>(CSSPropertyTextRendering, &FontCascadeDescription::textRenderingMode, &FontCascadeDescription::setTextRenderingMode),
- new DiscreteSVGPropertyWrapper<MaskType>(CSSPropertyMaskType, &SVGRenderStyle::maskType, &SVGRenderStyle::setMaskType)
+ new DiscreteSVGPropertyWrapper<MaskType>(CSSPropertyMaskType, &SVGRenderStyle::maskType, &SVGRenderStyle::setMaskType),
+ new DiscretePropertyWrapper<LineCap>(CSSPropertyStrokeLinecap, &RenderStyle::capStyle, &RenderStyle::setCapStyle)
};
const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers);