File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Userland/Libraries/LibWeb/Animations Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -509,6 +509,11 @@ void Animation::notify_timeline_time_did_change()
509
509
}
510
510
}
511
511
512
+ void Animation::effect_timing_changed (Badge<AnimationEffect>)
513
+ {
514
+ update_finished_state (DidSeek::No, SynchronouslyNotify::Yes);
515
+ }
516
+
512
517
// https://www.w3.org/TR/web-animations-1/#associated-effect-end
513
518
double Animation::associated_effect_end () const
514
519
{
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ class Animation : public DOM::EventTarget {
65
65
JS::GCPtr<DOM::Document> document_for_timing () const ;
66
66
void notify_timeline_time_did_change ();
67
67
68
+ void effect_timing_changed (Badge<AnimationEffect>);
69
+
68
70
protected:
69
71
Animation (JS::Realm&);
70
72
Original file line number Diff line number Diff line change @@ -151,6 +151,9 @@ WebIDL::ExceptionOr<void> AnimationEffect::update_timing(OptionalEffectTiming ti
151
151
if (timing.easing .has_value ())
152
152
m_easing_function = timing.easing .value ();
153
153
154
+ if (auto animation = m_associated_animation)
155
+ animation->effect_timing_changed ({});
156
+
154
157
return {};
155
158
}
156
159
You can’t perform that action at this time.
0 commit comments