mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibWeb: Implement Animation::set_start_time
This commit is contained in:
parent
4889f53880
commit
422f43f4fc
Notes:
sideshowbarker
2024-07-17 02:21:14 +09:00
Author: https://github.com/mattco98
Commit: 422f43f4fc
Pull-request: https://github.com/SerenityOS/serenity/pull/21893
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