mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibWeb: Move minimum/maximum size getter into GridItem method in GFC
No behavior change intended.
This commit is contained in:
parent
40760308c6
commit
c40f88ddcb
Notes:
github-actions[bot]
2025-03-21 14:21:00 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: c40f88ddcb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4028
2 changed files with 19 additions and 18 deletions
|
@ -68,6 +68,21 @@ struct GridItem {
|
|||
|
||||
[[nodiscard]] int gap_adjusted_row() const;
|
||||
[[nodiscard]] int gap_adjusted_column() const;
|
||||
|
||||
CSS::ComputedValues const& computed_values() const
|
||||
{
|
||||
return box->computed_values();
|
||||
}
|
||||
|
||||
CSS::Size const& minimum_size(GridDimension dimension) const
|
||||
{
|
||||
return dimension == GridDimension::Column ? computed_values().min_width() : computed_values().min_height();
|
||||
}
|
||||
|
||||
CSS::Size const& maximum_size(GridDimension dimension) const
|
||||
{
|
||||
return dimension == GridDimension::Column ? computed_values().max_width() : computed_values().max_height();
|
||||
}
|
||||
};
|
||||
|
||||
enum class FoundUnoccupiedPlace {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue