mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Use StringBuilder when serializing basic grid types
This commit is contained in:
committed by
Jelle Raaijmakers
parent
17ee0e3a19
commit
1d2e4e4273
Notes:
github-actions[bot]
2026-01-09 09:02:01 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/1d2e4e42735 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7381 Reviewed-by: https://github.com/gmta ✅
@@ -40,6 +40,7 @@ public:
|
||||
|
||||
bool is_definite() const;
|
||||
|
||||
void serialize(StringBuilder&, SerializationMode) const;
|
||||
String to_string(SerializationMode) const;
|
||||
GridSize absolutized(ComputationContext const&) const;
|
||||
bool operator==(GridSize const& other) const = default;
|
||||
@@ -55,6 +56,7 @@ public:
|
||||
GridSize const& min_grid_size() const& { return m_min_grid_size; }
|
||||
GridSize const& max_grid_size() const& { return m_max_grid_size; }
|
||||
|
||||
void serialize(StringBuilder&, SerializationMode) const;
|
||||
String to_string(SerializationMode) const;
|
||||
GridMinMax absolutized(ComputationContext const&) const;
|
||||
bool operator==(GridMinMax const& other) const = default;
|
||||
@@ -77,6 +79,7 @@ public:
|
||||
bool is_empty() const { return m_names.is_empty(); }
|
||||
auto const& names() const& { return m_names; }
|
||||
|
||||
void serialize(StringBuilder&) const;
|
||||
String to_string() const;
|
||||
|
||||
bool operator==(GridLineNames const& other) const = default;
|
||||
@@ -92,6 +95,7 @@ public:
|
||||
Vector<CSS::ExplicitGridTrack> track_list() const;
|
||||
auto const& list() const { return m_list; }
|
||||
|
||||
void serialize(StringBuilder&, SerializationMode) const;
|
||||
String to_string(SerializationMode) const;
|
||||
bool operator==(GridTrackSizeList const& other) const;
|
||||
|
||||
@@ -133,6 +137,7 @@ public:
|
||||
GridTrackSizeList const& grid_track_size_list() const& { return m_grid_track_size_list; }
|
||||
GridRepeatType type() const& { return m_type; }
|
||||
|
||||
void serialize(StringBuilder&, SerializationMode) const;
|
||||
String to_string(SerializationMode) const;
|
||||
GridRepeat absolutized(ComputationContext const&) const;
|
||||
bool operator==(GridRepeat const& other) const = default;
|
||||
@@ -156,6 +161,7 @@ public:
|
||||
bool is_default() const { return m_value.has<GridSize>(); }
|
||||
GridSize const& grid_size() const { return m_value.get<GridSize>(); }
|
||||
|
||||
void serialize(StringBuilder&, SerializationMode) const;
|
||||
String to_string(SerializationMode) const;
|
||||
ExplicitGridTrack absolutized(ComputationContext const&) const;
|
||||
bool operator==(ExplicitGridTrack const& other) const = default;
|
||||
|
||||
Reference in New Issue
Block a user