Title: [291164] trunk
- Revision
- 291164
- Author
- [email protected]
- Date
- 2022-03-11 06:27:14 -0800 (Fri, 11 Mar 2022)
Log Message
[web-animations] stroke-linejoin should support discrete animation
https://bugs.webkit.org/show_bug.cgi?id=237764
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):
Modified Paths
Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (291163 => 291164)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2022-03-11 14:23:34 UTC (rev 291163)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2022-03-11 14:27:14 UTC (rev 291164)
@@ -1,5 +1,16 @@
2022-03-11 Antoine Quint <[email protected]>
+ [web-animations] stroke-linejoin should support discrete animation
+ https://bugs.webkit.org/show_bug.cgi?id=237764
+
+ 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] stroke-linecap should support discrete animation
https://bugs.webkit.org/show_bug.cgi?id=237763
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt (291163 => 291164)
--- 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)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt 2022-03-11 14:27:14 UTC (rev 291164)
@@ -155,6 +155,9 @@
PASS stroke-linecap (type: discrete) has testAccumulation function
PASS stroke-linecap: "square" onto "round"
PASS stroke-linecap: "round" onto "square"
+PASS stroke-linejoin (type: discrete) has testAccumulation function
+PASS stroke-linejoin: "miter" onto "round"
+PASS stroke-linejoin: "round" onto "miter"
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 (291163 => 291164)
--- 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)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt 2022-03-11 14:27:14 UTC (rev 291164)
@@ -155,6 +155,9 @@
PASS stroke-linecap (type: discrete) has testAddition function
PASS stroke-linecap: "square" onto "round"
PASS stroke-linecap: "round" onto "square"
+PASS stroke-linejoin (type: discrete) has testAddition function
+PASS stroke-linejoin: "miter" onto "round"
+PASS stroke-linejoin: "round" onto "miter"
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 (291163 => 291164)
--- 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)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt 2022-03-11 14:27:14 UTC (rev 291164)
@@ -187,6 +187,10 @@
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-linejoin (type: discrete) has testInterpolation function
+PASS stroke-linejoin uses discrete animation when animating between "round" and "miter" with linear easing
+PASS stroke-linejoin uses discrete animation when animating between "round" and "miter" with effect easing
+PASS stroke-linejoin uses discrete animation when animating between "round" and "miter" 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 (291163 => 291164)
--- trunk/Source/WebCore/ChangeLog 2022-03-11 14:23:34 UTC (rev 291163)
+++ trunk/Source/WebCore/ChangeLog 2022-03-11 14:27:14 UTC (rev 291164)
@@ -1,5 +1,15 @@
2022-03-11 Antoine Quint <[email protected]>
+ [web-animations] stroke-linejoin should support discrete animation
+ https://bugs.webkit.org/show_bug.cgi?id=237764
+
+ Reviewed by Antti Koivisto.
+
+ * animation/CSSPropertyAnimation.cpp:
+ (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
+
+2022-03-11 Antoine Quint <[email protected]>
+
[web-animations] stroke-linecap should support discrete animation
https://bugs.webkit.org/show_bug.cgi?id=237763
Modified: trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp (291163 => 291164)
--- trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2022-03-11 14:23:34 UTC (rev 291163)
+++ trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2022-03-11 14:27:14 UTC (rev 291164)
@@ -3262,7 +3262,8 @@
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 DiscretePropertyWrapper<LineCap>(CSSPropertyStrokeLinecap, &RenderStyle::capStyle, &RenderStyle::setCapStyle)
+ new DiscretePropertyWrapper<LineCap>(CSSPropertyStrokeLinecap, &RenderStyle::capStyle, &RenderStyle::setCapStyle),
+ new DiscretePropertyWrapper<LineJoin>(CSSPropertyStrokeLinejoin, &RenderStyle::joinStyle, &RenderStyle::setJoinStyle)
};
const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes