mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-17 05:29:56 +00:00
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) 2025, Callum Law <callumlaw1709@outlook.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/CSS/StyleValues/StyleValue.h>
|
|
|
|
namespace Web::CSS {
|
|
|
|
class SuperellipseStyleValue final : public StyleValueWithDefaultOperators<SuperellipseStyleValue> {
|
|
public:
|
|
static ValueComparingNonnullRefPtr<SuperellipseStyleValue const> create(ValueComparingNonnullRefPtr<StyleValue const> const& parameter)
|
|
{
|
|
return adopt_ref(*new (nothrow) SuperellipseStyleValue(parameter));
|
|
}
|
|
virtual ~SuperellipseStyleValue() override = default;
|
|
|
|
virtual String to_string(SerializationMode serialization_mode) const override;
|
|
|
|
virtual ValueComparingNonnullRefPtr<StyleValue const> absolutized(ComputationContext const&) const override;
|
|
|
|
bool properties_equal(SuperellipseStyleValue const& other) const { return m_parameter == other.m_parameter; }
|
|
|
|
private:
|
|
explicit SuperellipseStyleValue(ValueComparingNonnullRefPtr<StyleValue const> const& parameter)
|
|
: StyleValueWithDefaultOperators(Type::Superellipse)
|
|
, m_parameter(parameter)
|
|
{
|
|
}
|
|
|
|
ValueComparingNonnullRefPtr<StyleValue const> m_parameter;
|
|
};
|
|
|
|
}
|