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
commit e9a718ff88
Notes: sideshowbarker 2024-07-17 09:49:48 +09:00
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;