mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-15 20:49:41 +00:00
LibWeb/CSS: Implement CSSTransformComponent
This is a base type for the various transform functions. CSSMatrixComponent's to_string() can throw exceptions, so to_string() is implemented that way. https://github.com/w3c/fxtf-drafts/issues/611 +9 WPT subtests.
This commit is contained in:
parent
43dd0f2dda
commit
8e86bf2dd0
Notes:
github-actions[bot]
2025-09-24 11:29:53 +00:00
Author: https://github.com/AtkinsSJ
Commit: 8e86bf2dd0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6227
9 changed files with 95 additions and 11 deletions
29
Libraries/LibWeb/CSS/CSSTransformComponent.cpp
Normal file
29
Libraries/LibWeb/CSS/CSSTransformComponent.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include "CSSTransformComponent.h"
|
||||
#include <LibWeb/Bindings/CSSTransformComponentPrototype.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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue