1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

LibWeb: Run pending play tasks when the timeline time changes

Note that the timeline time changes every animation frame when the
Document sends out animation events
This commit is contained in:
Matthew Olsson 2024-02-02 15:01:30 -07:00 committed by Andreas Kling
parent daaaaec2d0
commit 727a9a6472
6 changed files with 101 additions and 13 deletions

View file

@ -17,7 +17,7 @@ class AnimationTimeline : public Bindings::PlatformObject {
public:
Optional<double> current_time() const { return m_current_time; }
virtual WebIDL::ExceptionOr<void> set_current_time(Optional<double>);
virtual void set_current_time(Optional<double>);
JS::GCPtr<DOM::Document> associated_document() const { return m_associated_document; }
void set_associated_document(JS::GCPtr<DOM::Document>);