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:
parent
f2a15ecea7
commit
e9a718ff88
6 changed files with 24 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue