mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:37:46 +00:00
LibWeb: Use CSSPixels
only when calculating radial gradient sizes
In order to do this, a function `sqrt(CSSPixels)` was added, which currently just converts to floating point to run `AK::sqrt()`.
This commit is contained in:
parent
d9c842a83f
commit
883f44d397
4 changed files with 60 additions and 48 deletions
|
@ -42,8 +42,8 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
[[nodiscard]] ALWAYS_INLINE T x() const { return m_x; }
|
||||
[[nodiscard]] ALWAYS_INLINE T y() const { return m_y; }
|
||||
[[nodiscard]] constexpr ALWAYS_INLINE T x() const { return m_x; }
|
||||
[[nodiscard]] constexpr ALWAYS_INLINE T y() const { return m_y; }
|
||||
|
||||
ALWAYS_INLINE void set_x(T x) { m_x = x; }
|
||||
ALWAYS_INLINE void set_y(T y) { m_y = y; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue