1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 13:07:47 +00:00

LibWeb: Make DOMRectReadOnly use double instead of float

This commit is contained in:
Bastiaan van der Plaat 2023-08-20 21:48:42 +02:00 committed by Sam Atkins
parent 2e1d6f624d
commit e4270bc01d
2 changed files with 2 additions and 1 deletions

View file

@ -1038,6 +1038,7 @@ private:
using IntRect = Rect<int>; using IntRect = Rect<int>;
using FloatRect = Rect<float>; using FloatRect = Rect<float>;
using DoubleRect = Rect<double>;
[[nodiscard]] ALWAYS_INLINE IntRect enclosing_int_rect(FloatRect const& float_rect) [[nodiscard]] ALWAYS_INLINE IntRect enclosing_int_rect(FloatRect const& float_rect)
{ {

View file

@ -45,6 +45,6 @@ protected:
virtual void initialize(JS::Realm&) override; virtual void initialize(JS::Realm&) override;
Gfx::FloatRect m_rect; Gfx::DoubleRect m_rect;
}; };
} }