Changeset 287550 in webkit
- Timestamp:
- Jan 3, 2022 10:49:23 AM (7 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/CSSTransition-effect.tentative-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/animation/DeclarativeAnimation.cpp (modified) (1 diff)
-
Source/WebCore/animation/DeclarativeAnimation.h (modified) (1 diff)
-
Source/WebCore/animation/WebAnimation.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r287549 r287550 1 2022-01-03 Antoine Quint <graouts@webkit.org> 2 3 [Web Animations] changing the effect of a transition should no longer have it marked as running 4 https://bugs.webkit.org/show_bug.cgi?id=234823 5 6 Reviewed by Dean Jackson. 7 8 Mark WPT progression. 9 10 * web-platform-tests/css/css-transitions/CSSTransition-effect.tentative-expected.txt: 11 1 12 2022-01-03 Antoine Quint <graouts@webkit.org> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/CSSTransition-effect.tentative-expected.txt
r287548 r287550 3 3 PASS After setting a transition's effect to null, it becomes finished 4 4 PASS After setting a transition's effect to null, style is updated 5 FAIL After setting a transition's effect to null, a new transition can be started assert_equals: expected "100px" but got "0px" 5 PASS After setting a transition's effect to null, a new transition can be started 6 6 PASS After setting a transition's effect to null, it should be possible to interrupt that transition 7 7 PASS After setting a new keyframe effect with a shorter duration, the transition becomes finished -
trunk/Source/WebCore/ChangeLog
r287549 r287550 1 2022-01-03 Antoine Quint <graouts@webkit.org> 2 3 [Web Animations] changing the effect of a transition should no longer have it marked as running 4 https://bugs.webkit.org/show_bug.cgi?id=234823 5 6 Reviewed by Dean Jackson. 7 8 * animation/DeclarativeAnimation.cpp: 9 (WebCore::DeclarativeAnimation::setEffect): 10 * animation/DeclarativeAnimation.h: 11 * animation/WebAnimation.h: 12 1 13 2022-01-03 Antoine Quint <graouts@webkit.org> 2 14 -
trunk/Source/WebCore/animation/DeclarativeAnimation.cpp
r286642 r287550 234 234 cancel(); 235 235 disassociateFromOwningElement(); 236 } 237 238 void DeclarativeAnimation::setEffect(RefPtr<AnimationEffect>&& newEffect) 239 { 240 if (effect() == newEffect) 241 return; 242 243 WebAnimation::setEffect(WTFMove(newEffect)); 244 245 if (auto styleable = owningElement()) 246 styleable->removeDeclarativeAnimationFromListsForOwningElement(*this); 236 247 } 237 248 -
trunk/Source/WebCore/animation/DeclarativeAnimation.h
r286642 r287550 65 65 66 66 void setTimeline(RefPtr<AnimationTimeline>&&) final; 67 void setEffect(RefPtr<AnimationEffect>&&) final; 67 68 void cancel() final; 68 69 -
trunk/Source/WebCore/animation/WebAnimation.h
r286915 r287550 74 74 virtual void setBindingsEffect(RefPtr<AnimationEffect>&&); 75 75 AnimationEffect* effect() const { return m_effect.get(); } 76 v oid setEffect(RefPtr<AnimationEffect>&&);76 virtual void setEffect(RefPtr<AnimationEffect>&&); 77 77 AnimationTimeline* timeline() const { return m_timeline.get(); } 78 78 virtual void setTimeline(RefPtr<AnimationTimeline>&&);
Note: See TracChangeset
for help on using the changeset viewer.