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

@ -78,11 +78,25 @@ private:
GridSize m_max_grid_size;
};
struct GridLineNames {
Vector<FlyString> names;
struct GridLineName {
FlyString name;
bool implicit { false };
bool operator==(GridLineName const& other) const = default;
};
class GridLineNames {
public:
void append(FlyString const& name) { m_names.append({ name }); }
bool is_empty() const { return m_names.is_empty(); }
auto const& names() const& { return m_names; }
String to_string() const;
bool operator==(GridLineNames const& other) const = default;
private:
Vector<GridLineName> m_names;
};
class GridTrackSizeList {