1
Fork 0
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:
Matthew Olsson 2023-11-04 12:23:26 -07:00 committed by Andreas Kling
parent 1daded768d
commit 8053d40fd5
2 changed files with 68 additions and 0 deletions

View file

@ -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&);