2022-08-08 22:29:40 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
2022-09-25 16:38:21 -06:00
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
2022-08-08 22:29:40 +02:00
|
|
|
#include <LibWeb/HTML/PageTransitionEvent.h>
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
2022-09-25 16:38:21 -06:00
|
|
|
PageTransitionEvent* PageTransitionEvent::create(JS::Realm& realm, FlyString const& event_name, PageTransitionEventInit const& event_init)
|
2022-08-08 22:29:40 +02:00
|
|
|
{
|
2022-09-25 16:38:21 -06:00
|
|
|
return realm.heap().allocate<PageTransitionEvent>(realm, realm, event_name, event_init);
|
2022-08-08 22:29:40 +02:00
|
|
|
}
|
|
|
|
|
2022-09-25 16:38:21 -06:00
|
|
|
PageTransitionEvent* PageTransitionEvent::construct_impl(JS::Realm& realm, FlyString const& event_name, PageTransitionEventInit const& event_init)
|
2022-08-08 22:29:40 +02:00
|
|
|
{
|
2022-09-25 16:38:21 -06:00
|
|
|
return create(realm, event_name, event_init);
|
2022-08-08 22:29:40 +02:00
|
|
|
}
|
|
|
|
|
2022-09-25 16:38:21 -06:00
|
|
|
PageTransitionEvent::PageTransitionEvent(JS::Realm& realm, FlyString const& event_name, PageTransitionEventInit const& event_init)
|
|
|
|
: DOM::Event(realm, event_name, event_init)
|
2022-08-08 22:29:40 +02:00
|
|
|
, m_persisted(event_init.persisted)
|
|
|
|
{
|
2022-09-25 16:38:21 -06:00
|
|
|
set_prototype(&Bindings::cached_web_prototype(realm, "PageTransitionEvent"));
|
2022-08-08 22:29:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
PageTransitionEvent::~PageTransitionEvent() = default;
|
|
|
|
|
|
|
|
}
|