mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -352,7 +352,7 @@ void Scrollbar::set_automatic_scrolling_active(bool active, Component pressed_co
|
|||
}
|
||||
}
|
||||
|
||||
void Scrollbar::scroll_by_page(const Gfx::IntPoint& click_position)
|
||||
void Scrollbar::scroll_by_page(Gfx::IntPoint const& click_position)
|
||||
{
|
||||
float range_size = max() - min();
|
||||
float available = scrubbable_range_in_pixels();
|
||||
|
@ -368,7 +368,7 @@ void Scrollbar::scroll_by_page(const Gfx::IntPoint& click_position)
|
|||
}
|
||||
}
|
||||
|
||||
void Scrollbar::scroll_to_position(const Gfx::IntPoint& click_position)
|
||||
void Scrollbar::scroll_to_position(Gfx::IntPoint const& click_position)
|
||||
{
|
||||
float range_size = max() - min();
|
||||
float available = scrubbable_range_in_pixels();
|
||||
|
@ -378,7 +378,7 @@ void Scrollbar::scroll_to_position(const Gfx::IntPoint& click_position)
|
|||
set_target_value(min() + rel_x_or_y * range_size);
|
||||
}
|
||||
|
||||
Scrollbar::Component Scrollbar::component_at_position(const Gfx::IntPoint& position)
|
||||
Scrollbar::Component Scrollbar::component_at_position(Gfx::IntPoint const& position)
|
||||
{
|
||||
if (scrubber_rect().contains(position))
|
||||
return Component::Scrubber;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue