mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
LibWeb: Implement Animation::play
This commit is contained in:
parent
88518c29ca
commit
4792dc294b
3 changed files with 139 additions and 2 deletions
|
@ -52,6 +52,13 @@ public:
|
|||
// https://www.w3.org/TR/web-animations-1/#dom-animation-finished
|
||||
JS::NonnullGCPtr<JS::Object> finished() const { return *current_finished_promise()->promise(); }
|
||||
|
||||
enum class AutoRewind {
|
||||
Yes,
|
||||
No,
|
||||
};
|
||||
WebIDL::ExceptionOr<void> play();
|
||||
WebIDL::ExceptionOr<void> play_an_animation(AutoRewind);
|
||||
|
||||
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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue