mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
LibWeb: Make CSS::Screen forward its ref count to DOM::Window
This commit is contained in:
parent
7fc770cfac
commit
c268d0fa13
4 changed files with 12 additions and 10 deletions
|
@ -7,19 +7,18 @@
|
|||
#include <LibGfx/Rect.h>
|
||||
#include <LibWeb/CSS/Screen.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/DOM/Window.h>
|
||||
#include <LibWeb/Page/Page.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
Screen::Screen(DOM::Window& window)
|
||||
: m_window(window)
|
||||
: RefCountForwarder(window)
|
||||
{
|
||||
}
|
||||
|
||||
Gfx::IntRect Screen::screen_rect() const
|
||||
{
|
||||
return m_window.page()->screen_rect();
|
||||
return window().page()->screen_rect();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue