mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
LibWeb: Add Animation helpers needed for update_finished_state
This commit is contained in:
parent
1daded768d
commit
8053d40fd5
2 changed files with 68 additions and 0 deletions
|
@ -51,6 +51,11 @@ public:
|
|||
// https://www.w3.org/TR/web-animations-1/#dom-animation-finished
|
||||
JS::NonnullGCPtr<JS::Object> finished() const { return *current_finished_promise()->promise(); }
|
||||
|
||||
Optional<double> convert_an_animation_time_to_timeline_time(Optional<double>) const;
|
||||
Optional<double> convert_a_timeline_time_to_an_origin_relative_time(Optional<double>) const;
|
||||
|
||||
JS::GCPtr<DOM::Document> document_for_timing() const;
|
||||
|
||||
protected:
|
||||
Animation(JS::Realm&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue