2025-03-27 17:35:06 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/CSS/StyleValues/UnicodeRangeStyleValue.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
|
|
|
|
|
UnicodeRangeStyleValue::UnicodeRangeStyleValue(Gfx::UnicodeRange unicode_range)
|
|
|
|
|
: StyleValueWithDefaultOperators(Type::UnicodeRange)
|
|
|
|
|
, m_unicode_range(unicode_range)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UnicodeRangeStyleValue::~UnicodeRangeStyleValue() = default;
|
|
|
|
|
|
2026-01-08 12:02:18 +00:00
|
|
|
void UnicodeRangeStyleValue::serialize(StringBuilder& builder, SerializationMode) const
|
2025-03-27 17:35:06 +00:00
|
|
|
{
|
2026-01-08 12:02:18 +00:00
|
|
|
builder.append(m_unicode_range.to_string());
|
2025-03-27 17:35:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool UnicodeRangeStyleValue::properties_equal(UnicodeRangeStyleValue const& other) const
|
|
|
|
|
{
|
|
|
|
|
return m_unicode_range == other.m_unicode_range;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|