diff --git a/Userland/Libraries/LibGfx/Rect.h b/Userland/Libraries/LibGfx/Rect.h index 7f53e7e7a1..0b3ad407a5 100644 --- a/Userland/Libraries/LibGfx/Rect.h +++ b/Userland/Libraries/LibGfx/Rect.h @@ -1038,6 +1038,7 @@ private: using IntRect = Rect; using FloatRect = Rect; +using DoubleRect = Rect; [[nodiscard]] ALWAYS_INLINE IntRect enclosing_int_rect(FloatRect const& float_rect) { diff --git a/Userland/Libraries/LibWeb/Geometry/DOMRectReadOnly.h b/Userland/Libraries/LibWeb/Geometry/DOMRectReadOnly.h index 1982ff6f06..5c36caa0da 100644 --- a/Userland/Libraries/LibWeb/Geometry/DOMRectReadOnly.h +++ b/Userland/Libraries/LibWeb/Geometry/DOMRectReadOnly.h @@ -45,6 +45,6 @@ protected: virtual void initialize(JS::Realm&) override; - Gfx::FloatRect m_rect; + Gfx::DoubleRect m_rect; }; }