mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Previously, the LibWeb bindings generator would output multiple per interface files like Prototype/Constructor/Namespace/GlobalMixin depending on the contents of that IDL file. This complicates the build system as it means that it does not know what files will be generated without knowledge of the contents of that IDL file. Instead, for each IDL file only generate a single Bindings/<IDLFile>.h and Bindings/<IDLFile>.cpp.
30 lines
664 B
C++
30 lines
664 B
C++
/*
|
|
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "CSSTransformComponent.h"
|
|
#include <LibWeb/Bindings/CSSTransformComponent.h>
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
|
|
|
namespace Web::CSS {
|
|
|
|
GC_DEFINE_ALLOCATOR(CSSTransformComponent);
|
|
|
|
CSSTransformComponent::CSSTransformComponent(JS::Realm& realm, Is2D is_2d)
|
|
: Bindings::PlatformObject(realm)
|
|
, m_is_2d(is_2d == Is2D::Yes)
|
|
{
|
|
}
|
|
|
|
CSSTransformComponent::~CSSTransformComponent() = default;
|
|
|
|
void CSSTransformComponent::initialize(JS::Realm& realm)
|
|
{
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSTransformComponent);
|
|
Base::initialize(realm);
|
|
}
|
|
|
|
}
|