1
Fork 0
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:
Aliaksandr Kalenik 2023-08-17 17:26:31 +02:00 committed by Andreas Kling
parent f2a15ecea7
commit e9a718ff88
6 changed files with 24 additions and 14 deletions

View file

@ -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();
}