mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57: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
|
@ -140,7 +140,7 @@ public:
|
|||
void set_needs_display();
|
||||
void set_needs_display(Gfx::IntRect const&);
|
||||
|
||||
Gfx::IntPoint const& viewport_scroll_offset() const { return m_viewport_scroll_offset; }
|
||||
Gfx::IntPoint viewport_scroll_offset() const { return m_viewport_scroll_offset; }
|
||||
Gfx::IntRect viewport_rect() const { return { m_viewport_scroll_offset, m_size }; }
|
||||
void set_viewport_rect(Gfx::IntRect const&);
|
||||
|
||||
|
@ -150,7 +150,7 @@ public:
|
|||
Web::EventHandler& event_handler() { return m_event_handler; }
|
||||
Web::EventHandler const& event_handler() const { return m_event_handler; }
|
||||
|
||||
void scroll_to(Gfx::IntPoint const&);
|
||||
void scroll_to(Gfx::IntPoint);
|
||||
void scroll_to_anchor(DeprecatedString const&);
|
||||
|
||||
BrowsingContext& top_level_browsing_context()
|
||||
|
@ -183,7 +183,7 @@ public:
|
|||
HTML::BrowsingContextContainer* container() { return m_container; }
|
||||
HTML::BrowsingContextContainer const* container() const { return m_container; }
|
||||
|
||||
Gfx::IntPoint to_top_level_position(Gfx::IntPoint const&);
|
||||
Gfx::IntPoint to_top_level_position(Gfx::IntPoint);
|
||||
Gfx::IntRect to_top_level_rect(Gfx::IntRect const&);
|
||||
|
||||
DOM::Position const& cursor_position() const { return m_cursor_position; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue