mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +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
|
@ -324,7 +324,7 @@ void Scrollbar::set_automatic_scrolling_active(bool active, Component pressed_co
|
|||
}
|
||||
}
|
||||
|
||||
void Scrollbar::scroll_by_page(Gfx::IntPoint const& click_position)
|
||||
void Scrollbar::scroll_by_page(Gfx::IntPoint click_position)
|
||||
{
|
||||
float range_size = max() - min();
|
||||
float available = scrubbable_range_in_pixels();
|
||||
|
@ -340,7 +340,7 @@ void Scrollbar::scroll_by_page(Gfx::IntPoint const& click_position)
|
|||
}
|
||||
}
|
||||
|
||||
void Scrollbar::scroll_to_position(Gfx::IntPoint const& click_position)
|
||||
void Scrollbar::scroll_to_position(Gfx::IntPoint click_position)
|
||||
{
|
||||
float range_size = max() - min();
|
||||
float available = scrubbable_range_in_pixels();
|
||||
|
@ -350,7 +350,7 @@ void Scrollbar::scroll_to_position(Gfx::IntPoint const& click_position)
|
|||
set_target_value(min() + rel_x_or_y * range_size);
|
||||
}
|
||||
|
||||
Scrollbar::Component Scrollbar::component_at_position(Gfx::IntPoint const& position)
|
||||
Scrollbar::Component Scrollbar::component_at_position(Gfx::IntPoint position)
|
||||
{
|
||||
if (scrubber_rect().contains(position))
|
||||
return Component::Scrubber;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue