mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibWeb: Saturate PixelUnits on creation when needed
This commit is contained in:
parent
95d00553c9
commit
1e5ba09d76
2 changed files with 17 additions and 3 deletions
|
@ -57,6 +57,9 @@ public:
|
|||
|
||||
static constexpr i32 radix_mask = fixed_point_denominator - 1;
|
||||
|
||||
static constexpr i32 max_integer_value = NumericLimits<int>::max() >> fractional_bits;
|
||||
static constexpr i32 min_integer_value = NumericLimits<int>::min() >> fractional_bits;
|
||||
|
||||
CSSPixels() = default;
|
||||
CSSPixels(int value);
|
||||
CSSPixels(unsigned int value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue