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:
parent
c3b689488e
commit
ceb9d0f8dc
3 changed files with 13 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue