mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb/CSS: Absolutize grid-related StyleValues
This commit is contained in:
parent
597fe8288c
commit
7de17dce9d
Notes:
github-actions[bot]
2025-11-19 23:47:02 +00:00
Author: https://github.com/AtkinsSJ
Commit: 7de17dce9d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6857
Reviewed-by: https://github.com/tcl3 ✅
12 changed files with 161 additions and 26 deletions
|
|
@ -1,6 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Martin Falisse <mfalisse@outlook.com>
|
||||
* Copyright (c) 2025, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
||||
* Copyright (c) 2025, Sam Atkins <sam@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
|
@ -40,6 +41,7 @@ public:
|
|||
bool is_definite() const;
|
||||
|
||||
String to_string(SerializationMode) const;
|
||||
GridSize absolutized(ComputationContext const&) const;
|
||||
bool operator==(GridSize const& other) const = default;
|
||||
|
||||
private:
|
||||
|
|
@ -54,6 +56,7 @@ public:
|
|||
GridSize const& max_grid_size() const& { return m_max_grid_size; }
|
||||
|
||||
String to_string(SerializationMode) const;
|
||||
GridMinMax absolutized(ComputationContext const&) const;
|
||||
bool operator==(GridMinMax const& other) const = default;
|
||||
|
||||
private:
|
||||
|
|
@ -97,6 +100,8 @@ public:
|
|||
void append(GridLineNames&&);
|
||||
void append(ExplicitGridTrack&&);
|
||||
|
||||
GridTrackSizeList absolutized(ComputationContext const&) const;
|
||||
|
||||
private:
|
||||
Vector<Variant<ExplicitGridTrack, GridLineNames>> m_list;
|
||||
};
|
||||
|
|
@ -129,6 +134,7 @@ public:
|
|||
GridRepeatType type() const& { return m_type; }
|
||||
|
||||
String to_string(SerializationMode) const;
|
||||
GridRepeat absolutized(ComputationContext const&) const;
|
||||
bool operator==(GridRepeat const& other) const = default;
|
||||
|
||||
private:
|
||||
|
|
@ -151,6 +157,7 @@ public:
|
|||
GridSize const& grid_size() const { return m_value.get<GridSize>(); }
|
||||
|
||||
String to_string(SerializationMode) const;
|
||||
ExplicitGridTrack absolutized(ComputationContext const&) const;
|
||||
bool operator==(ExplicitGridTrack const& other) const = default;
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue