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

LibWeb: Implement AnimationEffect's phase helpers

This commit is contained in:
Matthew Olsson 2023-11-04 11:35:18 -07:00 committed by Andreas Kling
parent 6a9c03482f
commit 02c4973681
2 changed files with 80 additions and 0 deletions

View file

@ -101,6 +101,19 @@ public:
double before_active_boundary_time() const;
double after_active_boundary_time() const;
bool is_in_the_before_phase() const;
bool is_in_the_after_phase() const;
bool is_in_the_active_phase() const;
bool is_in_the_idle_phase() const;
enum class Phase {
Before,
Active,
After,
Idle,
};
Phase phase() const;
protected:
AnimationEffect(JS::Realm&);