mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
LibWeb+WebContent: Keep track of screen rect
It is now possible to get the up-to-date screen rect from a Web::Page.
This commit is contained in:
parent
96b26ec125
commit
e8739ddab7
Notes:
sideshowbarker
2024-07-18 20:51:06 +09:00
Author: https://github.com/linusg
Commit: e8739ddab7
Pull-request: https://github.com/SerenityOS/serenity/pull/6099
9 changed files with 29 additions and 1 deletions
|
@ -72,6 +72,11 @@ Gfx::Palette Page::palette() const
|
|||
return m_client.palette();
|
||||
}
|
||||
|
||||
Gfx::IntRect Page::screen_rect() const
|
||||
{
|
||||
return m_client.screen_rect();
|
||||
}
|
||||
|
||||
bool Page::handle_mousewheel(const Gfx::IntPoint& position, unsigned button, unsigned modifiers, int wheel_delta)
|
||||
{
|
||||
return main_frame().event_handler().handle_mousewheel(position, button, modifiers, wheel_delta);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue