mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +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
|
@ -1521,7 +1521,7 @@ CSSPixels FormattingContext::containing_block_width_for(NodeWithStyleAndBoxModel
|
|||
case SizeConstraint::MinContent:
|
||||
return 0;
|
||||
case SizeConstraint::MaxContent:
|
||||
return INFINITY;
|
||||
return CSSPixels::max();
|
||||
case SizeConstraint::None:
|
||||
return containing_block_state.content_width();
|
||||
}
|
||||
|
@ -1537,7 +1537,7 @@ CSSPixels FormattingContext::containing_block_height_for(NodeWithStyleAndBoxMode
|
|||
case SizeConstraint::MinContent:
|
||||
return 0;
|
||||
case SizeConstraint::MaxContent:
|
||||
return INFINITY;
|
||||
return CSSPixels::max();
|
||||
case SizeConstraint::None:
|
||||
return containing_block_state.content_height();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue