Changeset 291008 in webkit
- Timestamp:
- Mar 8, 2022 1:25:12 PM (4 months ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/property-list.js (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/animation/CSSPropertyAnimation.cpp (modified) (1 diff)
-
Source/WebCore/rendering/style/RenderStyle.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r290998 r291008 1 2022-03-08 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] color-interpolation should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237610 5 6 Reviewed by Tim Nguyen. 7 8 Since the input for the strings used in comparison for the WPT tests is using toLowerCase(), 9 we need to also use toLowerCase() for the output, so that "linearRGB" and "linearrgb" are 10 both correct values for "color-interpolation" values. 11 12 * web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt: 13 * web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt: 14 * web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt: 15 * web-platform-tests/web-animations/animation-model/animation-types/property-list.js: 16 1 17 2022-03-08 Sihui Liu <sihui_liu@apple.com> 2 18 -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt
r290571 r291008 131 131 PASS color supports animating as color of rgba() 132 132 PASS color supports animating as color of hsla() 133 PASS color-interpolation (type: discrete) has testAccumulation function 134 PASS color-interpolation: "auto" onto "linearrgb" 135 PASS color-interpolation: "linearrgb" onto "auto" 133 136 PASS column-count (type: positiveInteger) has testAccumulation function 134 137 PASS column-count: positive integer -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt
r290571 r291008 131 131 PASS color supports animating as color of rgba() 132 132 PASS color supports animating as color of hsla() 133 PASS color-interpolation (type: discrete) has testAddition function 134 PASS color-interpolation: "auto" onto "linearrgb" 135 PASS color-interpolation: "linearrgb" onto "auto" 133 136 PASS column-count (type: positiveInteger) has testAddition function 134 137 PASS column-count: positive integer -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt
r287909 r291008 158 158 PASS color supports animating as color of rgba() 159 159 PASS color supports animating as color of hsla() 160 PASS color-interpolation (type: discrete) has testInterpolation function 161 PASS color-interpolation uses discrete animation when animating between "linearrgb" and "auto" with linear easing 162 PASS color-interpolation uses discrete animation when animating between "linearrgb" and "auto" with effect easing 163 PASS color-interpolation uses discrete animation when animating between "linearrgb" and "auto" with keyframe easing 160 164 PASS column-count (type: positiveInteger) has testInterpolation function 161 165 PASS column-count supports animating as a positive integer -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/property-list.js
r287924 r291008 1425 1425 for (const testSample of testSamples) { 1426 1426 animation.currentTime = testSample.time; 1427 assert_equals(getComputedStyle(target, pseudoType)[idlName] ,1427 assert_equals(getComputedStyle(target, pseudoType)[idlName].toLowerCase(), 1428 1428 testSample.expected, 1429 1429 `The value should be ${testSample.expected}` + -
trunk/Source/WebCore/ChangeLog
r291003 r291008 1 2022-03-08 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] color-interpolation should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237610 5 6 Reviewed by Tim Nguyen. 7 8 * animation/CSSPropertyAnimation.cpp: 9 (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): 10 * rendering/style/RenderStyle.h: 11 (WebCore::RenderStyle::colorInterpolation const): 12 (WebCore::RenderStyle::setColorInterpolation): 13 1 14 2022-03-08 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp
r290898 r291008 2808 2808 new PropertyWrapperContent, 2809 2809 new OffsetRotatePropertyWrapper(CSSPropertyOffsetRotate, &RenderStyle::offsetRotate, &RenderStyle::setOffsetRotate), 2810 new DiscretePropertyWrapper<TextDecorationSkipInk>(CSSPropertyTextDecorationSkipInk, &RenderStyle::textDecorationSkipInk, &RenderStyle::setTextDecorationSkipInk) 2810 new DiscretePropertyWrapper<TextDecorationSkipInk>(CSSPropertyTextDecorationSkipInk, &RenderStyle::textDecorationSkipInk, &RenderStyle::setTextDecorationSkipInk), 2811 new DiscretePropertyWrapper<ColorInterpolation>(CSSPropertyColorInterpolation, &RenderStyle::colorInterpolation, &RenderStyle::setColorInterpolation) 2811 2812 }; 2812 2813 const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers); -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r290867 r291008 1422 1422 const SVGRenderStyle& svgStyle() const { return m_svgStyle; } 1423 1423 SVGRenderStyle& accessSVGStyle() { return m_svgStyle.access(); } 1424 1425 ColorInterpolation colorInterpolation() const { return svgStyle().colorInterpolation(); } 1426 void setColorInterpolation(ColorInterpolation colorInterpolation) { accessSVGStyle().setColorInterpolation(colorInterpolation); } 1424 1427 1425 1428 SVGPaintType fillPaintType() const { return svgStyle().fillPaintType(); }
Note: See TracChangeset
for help on using the changeset viewer.