mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 23:29:52 +00:00
LibWeb/CSS: Implement CSSMathValue
This is a base class for the various math functions, so it's not used directly anywhere.
This commit is contained in:
parent
ef8ca729cc
commit
6c8876cdb8
Notes:
github-actions[bot]
2025-08-29 10:00:11 +00:00
Author: https://github.com/AtkinsSJ
Commit: 6c8876cdb8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5955
Reviewed-by: https://github.com/trflynn89
8 changed files with 96 additions and 3 deletions
26
Libraries/LibWeb/CSS/CSSMathValue.cpp
Normal file
26
Libraries/LibWeb/CSS/CSSMathValue.cpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include "CSSMathValue.h"
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
GC_DEFINE_ALLOCATOR(CSSMathValue);
|
||||
|
||||
CSSMathValue::CSSMathValue(JS::Realm& realm, Bindings::CSSMathOperator operator_, NumericType type)
|
||||
: CSSNumericValue(realm, move(type))
|
||||
, m_operator(operator_)
|
||||
{
|
||||
}
|
||||
|
||||
void CSSMathValue::initialize(JS::Realm& realm)
|
||||
{
|
||||
WEB_SET_PROTOTYPE_FOR_INTERFACE(CSSMathValue);
|
||||
Base::initialize(realm);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue