diff options
author | Andreas Kling <kling@serenityos.org> | 2021-12-09 15:47:48 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-09 21:28:52 +0100 |
commit | c268d0fa1370162bff4355aac17f4446da9225a7 (patch) | |
tree | 35f6f730026eb364896736c4eb8a2f6ac8bdade6 /Userland/Libraries/LibWeb/CSS/Screen.cpp | |
parent | 7fc770cfacf865af33cdf9449bed15f8f16036b9 (diff) | |
download | serenity-c268d0fa1370162bff4355aac17f4446da9225a7.zip |
LibWeb: Make CSS::Screen forward its ref count to DOM::Window
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Screen.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Screen.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Screen.cpp b/Userland/Libraries/LibWeb/CSS/Screen.cpp index 09ddfa1bb3..c4610b7f28 100644 --- a/Userland/Libraries/LibWeb/CSS/Screen.cpp +++ b/Userland/Libraries/LibWeb/CSS/Screen.cpp @@ -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(); } } |