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:
parent
4889f53880
commit
422f43f4fc
2 changed files with 59 additions and 2 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue