2023-08-17 20:25:18 +02:00
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2023, Andreas Kling <andreas@ladybird.org>
|
2023-08-17 20:25:18 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "GridAutoFlowStyleValue.h"
|
|
|
|
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
|
2025-04-15 15:18:27 -06:00
|
|
|
ValueComparingNonnullRefPtr<GridAutoFlowStyleValue const> GridAutoFlowStyleValue::create(Axis axis, Dense dense)
|
2023-08-17 20:25:18 +02:00
|
|
|
{
|
|
|
|
|
return adopt_ref(*new GridAutoFlowStyleValue(axis, dense));
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-08 12:02:18 +00:00
|
|
|
void GridAutoFlowStyleValue::serialize(StringBuilder& builder, SerializationMode) const
|
2023-08-17 20:25:18 +02:00
|
|
|
{
|
|
|
|
|
if (m_row)
|
|
|
|
|
builder.append("row"sv);
|
|
|
|
|
else
|
|
|
|
|
builder.append("column"sv);
|
|
|
|
|
if (m_dense)
|
|
|
|
|
builder.append(" dense"sv);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|