mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
LibWeb: Make DOMRectReadOnly use double instead of float
This commit is contained in:
parent
2e1d6f624d
commit
e4270bc01d
Notes:
sideshowbarker
2024-07-18 04:46:35 +09:00
Author: https://github.com/bplaat
Commit: e4270bc01d
Pull-request: https://github.com/SerenityOS/serenity/pull/20691
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue