1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:47:34 +00:00

LibWeb: Implement Animation::set_start_time

This commit is contained in:
Matthew Olsson 2023-11-04 12:03:27 -07:00 committed by Andreas Kling
parent 4889f53880
commit 422f43f4fc
2 changed files with 59 additions and 2 deletions

View file

@ -55,6 +55,8 @@ protected:
virtual void visit_edges(Cell::Visitor&) override;
private:
void apply_any_pending_playback_rate();
JS::NonnullGCPtr<WebIDL::Promise> current_ready_promise() const;
JS::NonnullGCPtr<WebIDL::Promise> current_finished_promise() const;
@ -76,6 +78,9 @@ private:
// https://www.w3.org/TR/web-animations-1/#playback-rate
double m_playback_rate { 1.0 };
// https://www.w3.org/TR/web-animations-1/#pending-playback-rate
Optional<double> m_pending_playback_rate {};
// https://www.w3.org/TR/web-animations-1/#dom-animation-replacestate
Bindings::AnimationReplaceState m_replace_state { Bindings::AnimationReplaceState::Active };