1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

LibWeb: Record position of Animations in global animation list

"position of an Animation in the global animation list" is a fancy way
of saying "which animation object was created first"
This commit is contained in:
Matthew Olsson 2024-02-19 13:53:01 +00:00 committed by Andreas Kling
parent c3b689488e
commit ceb9d0f8dc
3 changed files with 13 additions and 0 deletions

View file

@ -842,6 +842,8 @@ JS::NonnullGCPtr<WebIDL::Promise> Animation::current_finished_promise() const
Animation::Animation(JS::Realm& realm)
: DOM::EventTarget(realm)
{
static unsigned int next_animation_list_order = 0;
m_global_animation_list_order = next_animation_list_order++;
}
void Animation::initialize(JS::Realm& realm)