Changeset 291128 in webkit
- Timestamp:
- Mar 10, 2022 1:41:57 PM (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) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r291124 r291128 1 2022-03-10 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] quotes should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237721 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-10 Chris Fleizach <cfleizach@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt
r290888 r291128 108 108 PASS position: "fixed" onto "absolute" 109 109 PASS position: "absolute" onto "fixed" 110 PASS quotes (type: discrete) has testAccumulation function 111 PASS quotes: ""‘" "’" "“" "”"" onto ""“" "”" "‘" "’"" 112 PASS quotes: ""“" "”" "‘" "’"" onto ""‘" "’" "“" "”"" 110 113 PASS resize (type: discrete) has testAccumulation function 111 114 PASS resize: "horizontal" onto "both" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt
r290888 r291128 108 108 PASS position: "fixed" onto "absolute" 109 109 PASS position: "absolute" onto "fixed" 110 PASS quotes (type: discrete) has testAddition function 111 PASS quotes: ""‘" "’" "“" "”"" onto ""“" "”" "‘" "’"" 112 PASS quotes: ""“" "”" "‘" "’"" onto ""‘" "’" "“" "”"" 110 113 PASS resize (type: discrete) has testAddition function 111 114 PASS resize: "horizontal" onto "both" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt
r290888 r291128 126 126 PASS position uses discrete animation when animating between "absolute" and "fixed" with effect easing 127 127 PASS position uses discrete animation when animating between "absolute" and "fixed" with keyframe easing 128 PASS quotes (type: discrete) has testInterpolation function 129 PASS quotes uses discrete animation when animating between ""“" "”" "‘" "’"" and ""‘" "’" "“" "”"" with linear easing 130 PASS quotes uses discrete animation when animating between ""“" "”" "‘" "’"" and ""‘" "’" "“" "”"" with effect easing 131 PASS quotes uses discrete animation when animating between ""“" "”" "‘" "’"" and ""‘" "’" "“" "”"" with keyframe easing 128 132 PASS resize (type: discrete) has testInterpolation function 129 133 PASS resize uses discrete animation when animating between "both" and "horizontal" with linear easing -
trunk/Source/WebCore/ChangeLog
r291127 r291128 1 2022-03-10 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] quotes should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237721 5 6 Reviewed by Antti Koivisto. 7 8 * animation/CSSPropertyAnimation.cpp: 9 (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): 10 1 11 2022-03-10 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp
r291122 r291128 58 58 #include "OffsetRotation.h" 59 59 #include "PathOperation.h" 60 #include "QuotesData.h" 60 61 #include "RenderBox.h" 61 62 #include "RenderStyle.h" … … 2715 2716 destination.setNamedGridAreaColumnCount(source.namedGridAreaColumnCount()); 2716 2717 } 2718 }; 2719 2720 class QuotesWrapper final : public AnimationPropertyWrapperBase { 2721 WTF_MAKE_FAST_ALLOCATED; 2722 public: 2723 QuotesWrapper() 2724 : AnimationPropertyWrapperBase(CSSPropertyQuotes) 2725 { 2726 } 2727 2728 private: 2729 bool canInterpolate(const RenderStyle&, const RenderStyle&, CompositeOperation) const override { return false; } 2730 2731 bool equals(const RenderStyle& a, const RenderStyle& b) const override 2732 { 2733 return a.quotes() == b.quotes(); 2734 } 2735 2736 void blend(RenderStyle& destination, const RenderStyle& from, const RenderStyle& to, const CSSPropertyBlendingContext& context) const override 2737 { 2738 ASSERT(!context.progress || context.progress == 1.0); 2739 destination.setQuotes((context.progress ? to : from).quotes()); 2740 } 2741 2742 #if !LOG_DISABLED 2743 void logBlend(const RenderStyle&, const RenderStyle&, const RenderStyle&, double) const override 2744 { 2745 } 2746 #endif 2717 2747 }; 2718 2748 … … 3058 3088 new DiscretePropertyWrapper<FontVariantPosition>(CSSPropertyFontVariantPosition, &RenderStyle::fontVariantPosition, &RenderStyle::setFontVariantPosition), 3059 3089 new DiscretePropertyWrapper<FontVariantCaps>(CSSPropertyFontVariantCaps, &RenderStyle::fontVariantCaps, &RenderStyle::setFontVariantCaps), 3060 new GridTemplateAreasWrapper 3090 new GridTemplateAreasWrapper, 3091 new QuotesWrapper 3061 3092 }; 3062 3093 const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers);
Note: See TracChangeset
for help on using the changeset viewer.