mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +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: 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/Bindings/Intrinsics.h>
|
||||||
|
#include <LibWeb/DOM/Document.h>
|
||||||
|
#include <LibWeb/HTML/Window.h>
|
||||||
#include <LibWeb/Internals/InternalAnimationTimeline.h>
|
#include <LibWeb/Internals/InternalAnimationTimeline.h>
|
||||||
|
|
||||||
namespace Web::Internals {
|
namespace Web::Internals {
|
||||||
|
@ -26,6 +28,9 @@ InternalAnimationTimeline::InternalAnimationTimeline(JS::Realm& realm)
|
||||||
: AnimationTimeline(realm)
|
: AnimationTimeline(realm)
|
||||||
{
|
{
|
||||||
m_current_time = 0.0;
|
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)
|
void InternalAnimationTimeline::initialize(JS::Realm& realm)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue