mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
Meta+Userland: Pass Gfx::IntPoint by value
This is just two ints or 8 bytes or the size of the reference on x86_64 or AArch64.
This commit is contained in:
parent
bbc149ebb9
commit
7be0b27dd3
161 changed files with 442 additions and 441 deletions
|
@ -697,7 +697,7 @@ Gfx::IntRect Widget::screen_relative_rect() const
|
|||
return window_relative_rect().translated(window_position);
|
||||
}
|
||||
|
||||
Widget* Widget::child_at(Gfx::IntPoint const& point) const
|
||||
Widget* Widget::child_at(Gfx::IntPoint point) const
|
||||
{
|
||||
for (int i = children().size() - 1; i >= 0; --i) {
|
||||
if (!is<Widget>(children()[i]))
|
||||
|
@ -711,7 +711,7 @@ Widget* Widget::child_at(Gfx::IntPoint const& point) const
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
Widget::HitTestResult Widget::hit_test(Gfx::IntPoint const& position, ShouldRespectGreediness should_respect_greediness)
|
||||
Widget::HitTestResult Widget::hit_test(Gfx::IntPoint position, ShouldRespectGreediness should_respect_greediness)
|
||||
{
|
||||
if (should_respect_greediness == ShouldRespectGreediness::Yes && is_greedy_for_hits())
|
||||
return { this, position };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue