1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-28 17:12:12 +00:00

LibWeb: Add DOM::Window::page()

This helps us to get from a Window to the containing Page, without
clients having to go through Document.
This commit is contained in:
Andreas Kling 2021-09-09 13:45:03 +02:00
parent 84fcf879f9
commit d392349b6e
4 changed files with 18 additions and 5 deletions

View file

@ -19,7 +19,7 @@ Screen::Screen(DOM::Window& window)
Gfx::IntRect Screen::screen_rect() const
{
return m_window.document().page()->screen_rect();
return m_window.page()->screen_rect();
}
}