LibWeb: Implement AnimationEffect progress helper functions

This excludes transformed_progress (which is the progress value used to
interpolate CSS values) as it requires a timing function
This commit is contained in:
Matthew Olsson 2023-11-08 05:36:27 -07:00 committed by Andreas Kling
commit 1915e603c9
Notes: sideshowbarker 2024-07-17 11:29:41 +09:00
2 changed files with 135 additions and 0 deletions

View file

@ -116,6 +116,12 @@ public:
};
Phase phase() const;
Optional<double> overall_progress() const;
Optional<double> directed_progress() const;
AnimationDirection current_direction() const;
Optional<double> simple_iteration_progress() const;
Optional<double> current_iteration() const;
protected:
AnimationEffect(JS::Realm&);