1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:47:35 +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

@ -102,6 +102,16 @@ public:
return res;
}
static constexpr CSSPixels min()
{
return from_raw(NumericLimits<int>::min());
}
static constexpr CSSPixels max()
{
return from_raw(NumericLimits<int>::max());
}
float to_float() const;
double to_double() const;
int to_int() const;