Changeset 290655 in webkit
- Timestamp:
- Mar 1, 2022 10:14:37 AM (5 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/Animatable/animate-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/animation/KeyframeAnimationOptions.h (modified) (2 diffs)
-
Source/WebCore/animation/KeyframeAnimationOptions.idl (modified) (1 diff)
-
Source/WebCore/dom/Element.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r290651 r290655 1 2022-03-01 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] add support for passing an optional timeline to Element.animate() 4 https://bugs.webkit.org/show_bug.cgi?id=237312 5 6 Reviewed by Dean Jackson. 7 8 * web-platform-tests/web-animations/interfaces/Animatable/animate-expected.txt: 9 1 10 2022-02-28 Jonathan Bedard <jbedard@apple.com> 2 11 -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/interfaces/Animatable/animate-expected.txt
r289048 r290655 134 134 PASS Element.animate() correctly sets the Animation's timeline with no timeline parameter in KeyframeAnimationOptions. 135 135 PASS Element.animate() correctly sets the Animation's timeline with undefined timeline in KeyframeAnimationOptions. 136 FAIL Element.animate() correctly sets the Animation's timeline with null timeline in KeyframeAnimationOptions. assert_equals: Animation timeline should be null expected null but got object "[object DocumentTimeline]" 136 PASS Element.animate() correctly sets the Animation's timeline with null timeline in KeyframeAnimationOptions. 137 137 PASS Element.animate() correctly sets the Animation's timeline with DocumentTimeline in KeyframeAnimationOptions. 138 138 PASS Element.animate() calls play on the Animation -
trunk/Source/WebCore/ChangeLog
r290650 r290655 1 2022-03-01 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] add support for passing an optional timeline to Element.animate() 4 https://bugs.webkit.org/show_bug.cgi?id=237312 5 6 Reviewed by Dean Jackson. 7 8 * animation/KeyframeAnimationOptions.h: 9 * animation/KeyframeAnimationOptions.idl: 10 * dom/Element.cpp: 11 (WebCore::Element::animate): 12 1 13 2022-03-01 Commit Queue <commit-queue@webkit.org> 2 14 -
trunk/Source/WebCore/animation/KeyframeAnimationOptions.h
r290123 r290655 28 28 #include "AnimationFrameRate.h" 29 29 #include "AnimationFrameRatePreset.h" 30 #include "AnimationTimeline.h" 30 31 #include "KeyframeEffectOptions.h" 31 32 … … 34 35 struct KeyframeAnimationOptions : KeyframeEffectOptions { 35 36 String id; 37 std::optional<RefPtr<AnimationTimeline>> timeline; 36 38 std::variant<FramesPerSecond, AnimationFrameRatePreset> frameRate; 37 39 }; -
trunk/Source/WebCore/animation/KeyframeAnimationOptions.idl
r290123 r290655 28 28 dictionary KeyframeAnimationOptions : KeyframeEffectOptions { 29 29 DOMString id = ""; 30 [EnabledBySetting=WebAnimationsMutableTimelinesEnabled] AnimationTimeline? timeline; 30 31 [EnabledBySetting=WebAnimationsCustomFrameRateEnabled] (FramesPerSecond or AnimationFrameRatePreset) frameRate = "auto"; 31 32 }; -
trunk/Source/WebCore/dom/Element.cpp
r290646 r290655 4686 4686 { 4687 4687 String id = ""; 4688 std::optional<RefPtr<AnimationTimeline>> timeline; 4688 4689 std::variant<FramesPerSecond, AnimationFrameRatePreset> frameRate = AnimationFrameRatePreset::Auto; 4689 4690 std::optional<std::variant<double, KeyframeEffectOptions>> keyframeEffectOptions; … … 4697 4698 id = keyframeEffectOptions.id; 4698 4699 frameRate = keyframeEffectOptions.frameRate; 4700 timeline = keyframeEffectOptions.timeline; 4699 4701 keyframeEffectOptionsVariant = WTFMove(keyframeEffectOptions); 4700 4702 } … … 4708 4710 auto animation = WebAnimation::create(document(), &keyframeEffectResult.returnValue().get()); 4709 4711 animation->setId(id); 4712 if (timeline) 4713 animation->setTimeline(timeline->get()); 4710 4714 animation->setBindingsFrameRate(WTFMove(frameRate)); 4711 4715
Note: See TracChangeset
for help on using the changeset viewer.