/* * Copyright (c) 2024, Lucas Chollet . * * SPDX-License-Identifier: BSD-2-Clause */ #include "TransitionEvent.h" #include #include namespace Web::CSS { GC_DEFINE_ALLOCATOR(TransitionEvent); GC::Ref TransitionEvent::create(JS::Realm& realm, FlyString const& type, TransitionEventInit const& event_init) { auto event = realm.create(realm, type, event_init); event->set_is_trusted(true); return event; } GC::Ref TransitionEvent::construct_impl(JS::Realm& realm, FlyString const& type, TransitionEventInit const& event_init) { return realm.create(realm, type, event_init); } TransitionEvent::TransitionEvent(JS::Realm& realm, FlyString const& type, TransitionEventInit const& event_init) : DOM::Event(realm, type, event_init) , m_property_name(event_init.property_name) , m_elapsed_time(event_init.elapsed_time) , m_pseudo_element(event_init.pseudo_element) { } TransitionEvent::~TransitionEvent() = default; void TransitionEvent::initialize(JS::Realm& realm) { Base::initialize(realm); WEB_SET_PROTOTYPE_FOR_INTERFACE(TransitionEvent); } }