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:
parent
84fcf879f9
commit
d392349b6e
4 changed files with 18 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue