LibWeb: Skip serialization of implicit grid lines created during layout
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run

StyleValues created for grid-template-rows and grid-template-columns by
GFC should not include `-start`/`-end` lines implicitly created by grid
areas.
This commit is contained in:
Aliaksandr Kalenik 2025-06-25 17:58:07 +02:00 committed by Alexander Kalenik
commit 594194eb60
Notes: github-actions[bot] 2025-06-25 18:46:52 +00:00
8 changed files with 60 additions and 27 deletions

View file

@ -166,7 +166,11 @@ String GridLineNames::to_string() const
{
StringBuilder builder;
builder.append("["sv);
builder.join(' ', names);
for (size_t i = 0; i < m_names.size(); ++i) {
if (i > 0)
builder.append(" "sv);
builder.append(m_names[i].name);
}
builder.append("]"sv);
return MUST(builder.to_string());
}
@ -211,7 +215,8 @@ void GridTrackSizeList::append(GridLineNames&& line_names)
{
if (!m_list.is_empty() && m_list.last().has<GridLineNames>()) {
auto& last_line_names = m_list.last().get<GridLineNames>();
last_line_names.names.extend(move(line_names.names));
for (auto const& name : line_names.names())
last_line_names.append(name.name);
return;
}
m_list.append(move(line_names));