1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

LibWeb: Make serializing GridTrack classes infallible

This commit is contained in:
Sam Atkins 2023-08-22 12:35:16 +01:00 committed by Sam Atkins
parent 6bee81cfb6
commit 2754c16e97
7 changed files with 31 additions and 31 deletions

View file

@ -52,7 +52,7 @@ public:
Size css_size() const;
ErrorOr<String> to_string() const;
String to_string() const;
bool operator==(GridSize const& other) const
{
return m_type == other.type()
@ -74,7 +74,7 @@ public:
GridSize min_grid_size() const& { return m_min_grid_size; }
GridSize max_grid_size() const& { return m_max_grid_size; }
ErrorOr<String> to_string() const;
String to_string() const;
bool operator==(GridMinMax const& other) const
{
return m_min_grid_size == other.min_grid_size()
@ -96,7 +96,7 @@ public:
Vector<CSS::ExplicitGridTrack> track_list() const { return m_track_list; }
Vector<Vector<String>> line_names() const { return m_line_names; }
ErrorOr<String> to_string() const;
String to_string() const;
bool operator==(GridTrackSizeList const& other) const
{
return m_line_names == other.line_names() && m_track_list == other.track_list();
@ -129,7 +129,7 @@ public:
GridTrackSizeList grid_track_size_list() const& { return m_grid_track_size_list; }
Type type() const& { return m_type; }
ErrorOr<String> to_string() const;
String to_string() const;
bool operator==(GridRepeat const& other) const
{
if (m_type != other.type())
@ -179,7 +179,7 @@ public:
Type type() const { return m_type; }
ErrorOr<String> to_string() const;
String to_string() const;
bool operator==(ExplicitGridTrack const& other) const
{
if (is_repeat() && other.is_repeat())