diff options
author | MacDue <macdue@dueutil.tech> | 2022-12-06 20:57:07 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-07 11:48:27 +0100 |
commit | e011eafd3790ca0375a4678a9cb2debd0ae95ac7 (patch) | |
tree | 0a0b3a8131a2a61befe85aa841e32958bd53c50d /Userland/Libraries/LibWeb/Painting/PaintableBox.cpp | |
parent | 7be0b27dd3cd7185c1b8dc52747c50aad479bc6a (diff) | |
download | serenity-e011eafd3790ca0375a4678a9cb2debd0ae95ac7.zip |
Meta+Userland: Pass Gfx::FloatPoint by value
Just a small 8-byte value like Gfx::IntPoint.
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/PaintableBox.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/PaintableBox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp index 6bc37f41f6..def34ab773 100644 --- a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp +++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp @@ -53,7 +53,7 @@ PaintableWithLines::~PaintableWithLines() { } -void PaintableBox::set_offset(Gfx::FloatPoint const& offset) +void PaintableBox::set_offset(Gfx::FloatPoint offset) { m_offset = offset; // FIXME: This const_cast is gross. @@ -655,7 +655,7 @@ void PaintableBox::set_stacking_context(NonnullOwnPtr<StackingContext> stacking_ m_stacking_context = move(stacking_context); } -Optional<HitTestResult> PaintableBox::hit_test(Gfx::FloatPoint const& position, HitTestType type) const +Optional<HitTestResult> PaintableBox::hit_test(Gfx::FloatPoint position, HitTestType type) const { if (!is_visible()) return {}; @@ -679,7 +679,7 @@ Optional<HitTestResult> PaintableBox::hit_test(Gfx::FloatPoint const& position, return HitTestResult { *this }; } -Optional<HitTestResult> PaintableWithLines::hit_test(Gfx::FloatPoint const& position, HitTestType type) const +Optional<HitTestResult> PaintableWithLines::hit_test(Gfx::FloatPoint position, HitTestType type) const { if (!layout_box().children_are_inline()) return PaintableBox::hit_test(position, type); |