Changeset 291159 in webkit
- Timestamp:
- Mar 11, 2022 6:05:02 AM (4 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/animation/CSSPropertyAnimation.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r291158 r291159 1 2022-03-11 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] mask-composite should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237769 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 1 12 2022-03-11 Antoine Quint <graouts@webkit.org> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt
r291158 r291159 38 38 PASS mask-clip: "border-box" onto "content-box" 39 39 PASS mask-clip: "content-box" onto "border-box" 40 PASS mask-composite (type: discrete) has testAccumulation function 41 PASS mask-composite: "subtract" onto "add" 42 PASS mask-composite: "add" onto "subtract" 40 43 PASS mask-image (type: discrete) has testAccumulation function 41 44 PASS mask-image: "url("http://localhost/test-2")" onto "url("http://localhost/test-1")" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt
r291158 r291159 38 38 PASS mask-clip: "border-box" onto "content-box" 39 39 PASS mask-clip: "content-box" onto "border-box" 40 PASS mask-composite (type: discrete) has testAddition function 41 PASS mask-composite: "subtract" onto "add" 42 PASS mask-composite: "add" onto "subtract" 40 43 PASS mask-image (type: discrete) has testAddition function 41 44 PASS mask-image: "url("http://localhost/test-2")" onto "url("http://localhost/test-1")" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt
r291158 r291159 47 47 PASS mask-clip uses discrete animation when animating between "content-box" and "border-box" with effect easing 48 48 PASS mask-clip uses discrete animation when animating between "content-box" and "border-box" with keyframe easing 49 PASS mask-composite (type: discrete) has testInterpolation function 50 PASS mask-composite uses discrete animation when animating between "add" and "subtract" with linear easing 51 PASS mask-composite uses discrete animation when animating between "add" and "subtract" with effect easing 52 PASS mask-composite uses discrete animation when animating between "add" and "subtract" with keyframe easing 49 53 PASS mask-image (type: discrete) has testInterpolation function 50 54 FAIL mask-image uses discrete animation when animating between "url("http://localhost/test-1")" and "url("http://localhost/test-2")" with linear easing assert_equals: The value should be url("http://localhost/test-1") at 499ms expected "url(\"http://localhost/test-1\")" but got "url(\"http://localhost/test-2\")" -
trunk/Source/WebCore/ChangeLog
r291158 r291159 1 2022-03-11 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] mask-composite should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237769 5 6 Reviewed by Antti Koivisto. 7 8 Refactor FillLayerFillBoxPropertyWrapper to a templatized DiscreteFillLayerPropertyWrapper 9 which allows us to support other enum types like CompositeOperator. 10 11 * animation/CSSPropertyAnimation.cpp: 12 (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): 13 1 14 2022-03-11 Antoine Quint <graouts@webkit.org> 2 15 -
trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp
r291158 r291159 1903 1903 }; 1904 1904 1905 class FillLayerFillBoxPropertyWrapper final : public FillLayerAnimationPropertyWrapperBase { 1906 WTF_MAKE_FAST_ALLOCATED; 1907 public: 1908 FillLayerFillBoxPropertyWrapper(CSSPropertyID property, FillBox (FillLayer::*getter)() const, void (FillLayer::*setter)(FillBox)) 1905 template <typename T> 1906 class DiscreteFillLayerPropertyWrapper final : public FillLayerAnimationPropertyWrapperBase { 1907 WTF_MAKE_FAST_ALLOCATED; 1908 public: 1909 DiscreteFillLayerPropertyWrapper(CSSPropertyID property, T (FillLayer::*getter)() const, void (FillLayer::*setter)(T)) 1909 1910 : FillLayerAnimationPropertyWrapperBase(property) 1910 1911 , m_getter(getter) … … 1934 1935 } 1935 1936 1936 FillBox(FillLayer::*m_getter)() const;1937 void (FillLayer::*m_setter)( FillBox);1937 T (FillLayer::*m_getter)() const; 1938 void (FillLayer::*m_setter)(T); 1938 1939 }; 1939 1940 … … 1968 1969 break; 1969 1970 case CSSPropertyMaskClip: 1970 m_fillLayerPropertyWrapper = makeUnique< FillLayerFillBoxPropertyWrapper>(property, &FillLayer::clip, &FillLayer::setClip);1971 m_fillLayerPropertyWrapper = makeUnique<DiscreteFillLayerPropertyWrapper<FillBox>>(property, &FillLayer::clip, &FillLayer::setClip); 1971 1972 break; 1972 1973 case CSSPropertyMaskOrigin: 1973 m_fillLayerPropertyWrapper = makeUnique<FillLayerFillBoxPropertyWrapper>(property, &FillLayer::origin, &FillLayer::setOrigin); 1974 m_fillLayerPropertyWrapper = makeUnique<DiscreteFillLayerPropertyWrapper<FillBox>>(property, &FillLayer::origin, &FillLayer::setOrigin); 1975 break; 1976 case CSSPropertyMaskComposite: 1977 m_fillLayerPropertyWrapper = makeUnique<DiscreteFillLayerPropertyWrapper<CompositeOperator>>(property, &FillLayer::composite, &FillLayer::setComposite); 1974 1978 break; 1975 1979 default: … … 3010 3014 3011 3015 new FillLayersPropertyWrapper(CSSPropertyMaskClip, &RenderStyle::maskLayers, &RenderStyle::ensureMaskLayers), 3016 new FillLayersPropertyWrapper(CSSPropertyMaskComposite, &RenderStyle::maskLayers, &RenderStyle::ensureMaskLayers), 3012 3017 new FillLayersPropertyWrapper(CSSPropertyMaskOrigin, &RenderStyle::maskLayers, &RenderStyle::ensureMaskLayers), 3013 3018 new FillLayersPropertyWrapper(CSSPropertyWebkitMaskPositionX, &RenderStyle::maskLayers, &RenderStyle::ensureMaskLayers),
Note: See TracChangeset
for help on using the changeset viewer.