Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (291170 => 291171)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2022-03-11 17:08:15 UTC (rev 291170)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2022-03-11 17:11:24 UTC (rev 291171)
@@ -1,5 +1,16 @@
2022-03-11 Antoine Quint <[email protected]>
+ [web-animations] shape-rendering should support discrete animation
+ https://bugs.webkit.org/show_bug.cgi?id=237767
+
+ 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] vector-effect should support discrete animation
https://bugs.webkit.org/show_bug.cgi?id=237766
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt (291170 => 291171)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt 2022-03-11 17:08:15 UTC (rev 291170)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt 2022-03-11 17:11:24 UTC (rev 291171)
@@ -137,6 +137,9 @@
PASS shape-outside (type: discrete) has testAccumulation function
PASS shape-outside: "url("http://localhost/test-2")" onto "url("http://localhost/test-1")"
PASS shape-outside: "url("http://localhost/test-1")" onto "url("http://localhost/test-2")"
+PASS shape-rendering (type: discrete) has testAccumulation function
+PASS shape-rendering: "crispEdges" onto "optimizeSpeed"
+PASS shape-rendering: "optimizeSpeed" onto "crispEdges"
PASS stop-color (type: color) has testAccumulation function
FAIL stop-color supports animating as color of rgb() with overflowed from and to values assert_equals: The value should be rgb(255, 128, 255) at 500ms expected "rgb(255, 128, 255)" but got "rgb(192, 128, 192)"
PASS stop-color supports animating as color of #RGB
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt (291170 => 291171)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt 2022-03-11 17:08:15 UTC (rev 291170)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt 2022-03-11 17:11:24 UTC (rev 291171)
@@ -137,6 +137,9 @@
PASS shape-outside (type: discrete) has testAddition function
PASS shape-outside: "url("http://localhost/test-2")" onto "url("http://localhost/test-1")"
PASS shape-outside: "url("http://localhost/test-1")" onto "url("http://localhost/test-2")"
+PASS shape-rendering (type: discrete) has testAddition function
+PASS shape-rendering: "crispEdges" onto "optimizeSpeed"
+PASS shape-rendering: "optimizeSpeed" onto "crispEdges"
PASS stop-color (type: color) has testAddition function
FAIL stop-color supports animating as color of rgb() with overflowed from and to values assert_equals: The value should be rgb(255, 128, 255) at 500ms expected "rgb(255, 128, 255)" but got "rgb(192, 128, 192)"
PASS stop-color supports animating as color of #RGB
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt (291170 => 291171)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt 2022-03-11 17:08:15 UTC (rev 291170)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt 2022-03-11 17:11:24 UTC (rev 291171)
@@ -165,6 +165,10 @@
PASS shape-outside uses discrete animation when animating between "url("http://localhost/test-1")" and "url("http://localhost/test-2")" with linear easing
PASS shape-outside uses discrete animation when animating between "url("http://localhost/test-1")" and "url("http://localhost/test-2")" with effect easing
PASS shape-outside uses discrete animation when animating between "url("http://localhost/test-1")" and "url("http://localhost/test-2")" with keyframe easing
+PASS shape-rendering (type: discrete) has testInterpolation function
+PASS shape-rendering uses discrete animation when animating between "optimizeSpeed" and "crispEdges" with linear easing
+PASS shape-rendering uses discrete animation when animating between "optimizeSpeed" and "crispEdges" with effect easing
+PASS shape-rendering uses discrete animation when animating between "optimizeSpeed" and "crispEdges" with keyframe easing
PASS stop-color (type: color) has testInterpolation function
PASS stop-color supports animating as color of rgb()
PASS stop-color supports animating as color of #RGB
Modified: trunk/Source/WebCore/ChangeLog (291170 => 291171)
--- trunk/Source/WebCore/ChangeLog 2022-03-11 17:08:15 UTC (rev 291170)
+++ trunk/Source/WebCore/ChangeLog 2022-03-11 17:11:24 UTC (rev 291171)
@@ -1,5 +1,15 @@
2022-03-11 Antoine Quint <[email protected]>
+ [web-animations] shape-rendering should support discrete animation
+ https://bugs.webkit.org/show_bug.cgi?id=237767
+
+ Reviewed by Antti Koivisto.
+
+ * animation/CSSPropertyAnimation.cpp:
+ (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
+
+2022-03-11 Antoine Quint <[email protected]>
+
[web-animations] vector-effect should support discrete animation
https://bugs.webkit.org/show_bug.cgi?id=237766
Modified: trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp (291170 => 291171)
--- trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2022-03-11 17:08:15 UTC (rev 291170)
+++ trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp 2022-03-11 17:11:24 UTC (rev 291171)
@@ -3265,7 +3265,8 @@
new DiscretePropertyWrapper<LineCap>(CSSPropertyStrokeLinecap, &RenderStyle::capStyle, &RenderStyle::setCapStyle),
new DiscretePropertyWrapper<LineJoin>(CSSPropertyStrokeLinejoin, &RenderStyle::joinStyle, &RenderStyle::setJoinStyle),
new DiscreteSVGPropertyWrapper<TextAnchor>(CSSPropertyTextAnchor, &SVGRenderStyle::textAnchor, &SVGRenderStyle::setTextAnchor),
- new DiscreteSVGPropertyWrapper<VectorEffect>(CSSPropertyVectorEffect, &SVGRenderStyle::vectorEffect, &SVGRenderStyle::setVectorEffect)
+ new DiscreteSVGPropertyWrapper<VectorEffect>(CSSPropertyVectorEffect, &SVGRenderStyle::vectorEffect, &SVGRenderStyle::setVectorEffect),
+ new DiscreteSVGPropertyWrapper<ShapeRendering>(CSSPropertyShapeRendering, &SVGRenderStyle::shapeRendering, &SVGRenderStyle::setShapeRendering)
};
const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers);