mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
LibWeb/Layout: Replace INFINITY
with CSSPixels::min()
or max()
This commit is contained in:
parent
f2a15ecea7
commit
e9a718ff88
Notes:
sideshowbarker
2024-07-17 09:49:48 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: e9a718ff88
Pull-request: https://github.com/SerenityOS/serenity/pull/20618
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