LibWeb: Add an InternalAnimationTimeline object

This will allow fine grained control over animation times, which will
allow us to write timing tests that can reliably pass on the much slower
CI machines.
This commit is contained in:
Matthew Olsson 2024-03-27 15:30:54 +00:00 committed by Andreas Kling
commit a1f4d1875e
Notes: sideshowbarker 2024-07-18 03:23:00 +09:00
8 changed files with 87 additions and 1 deletions

View file

@ -101,4 +101,10 @@ WebIDL::ExceptionOr<bool> Internals::dispatch_user_activated_event(DOM::EventTar
return target.dispatch_event(event);
}
JS::NonnullGCPtr<InternalAnimationTimeline> Internals::create_internal_animation_timeline()
{
auto& realm = this->realm();
return realm.heap().allocate<InternalAnimationTimeline>(realm, realm);
}
}