mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibWeb/Layout: Replace INFINITY
with CSSPixels::min()
or max()
This commit is contained in:
parent
f2a15ecea7
commit
e9a718ff88
6 changed files with 24 additions and 14 deletions
|
@ -1080,7 +1080,7 @@ void GridFormattingContext::maximize_tracks(AvailableSpace const& available_spac
|
|||
// free space is infinite; if sizing under a min-content constraint, the free space is zero.
|
||||
auto free_space = get_free_space(available_space, dimension);
|
||||
if (free_space.is_max_content() || free_space.is_indefinite()) {
|
||||
return INFINITY;
|
||||
return CSSPixels::max();
|
||||
} else if (free_space.is_min_content()) {
|
||||
return 0;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue