mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
LibWeb: Associate InternalAnimationTimeline with a DOM::Document
This commit is contained in:
parent
c33f6b2ff6
commit
291871e0cc
Notes:
sideshowbarker
2024-07-17 09:37:30 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/291871e0cc Pull-request: https://github.com/SerenityOS/serenity/pull/23756
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
*/
|
||||
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/Internals/InternalAnimationTimeline.h>
|
||||
|
||||
namespace Web::Internals {
|
||||
|
@ -26,6 +28,9 @@ InternalAnimationTimeline::InternalAnimationTimeline(JS::Realm& realm)
|
|||
: AnimationTimeline(realm)
|
||||
{
|
||||
m_current_time = 0.0;
|
||||
|
||||
auto& document = static_cast<HTML::Window&>(global_object()).associated_document();
|
||||
document.associate_with_timeline(*this);
|
||||
}
|
||||
|
||||
void InternalAnimationTimeline::initialize(JS::Realm& realm)
|
||||
|
|
Loading…
Reference in a new issue