mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
Previously we implemented an all encompassing `MathDepthStyleValue` specifically for the `math-depth` property, this was unnecessary since we can represent `auto-add` and `<integer>` using existing `StyleValue` classes. This brings the values created from parsing in line with those set via `StylePropertyMap` which allows us to simplify computation
19 lines
425 B
C++
19 lines
425 B
C++
/*
|
|
* Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
|
|
* Copyright (c) 2026, Callum Law <callumlaw1709@outlook.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "AddFunctionStyleValue.h"
|
|
|
|
namespace Web::CSS {
|
|
|
|
void AddFunctionStyleValue::serialize(StringBuilder& builder, SerializationMode mode) const
|
|
{
|
|
builder.append("add("sv);
|
|
m_value->serialize(builder, mode);
|
|
builder.append(')');
|
|
}
|
|
|
|
}
|