summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Screen.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-12-09 15:47:48 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-09 21:28:52 +0100
commitc268d0fa1370162bff4355aac17f4446da9225a7 (patch)
tree35f6f730026eb364896736c4eb8a2f6ac8bdade6 /Userland/Libraries/LibWeb/CSS/Screen.cpp
parent7fc770cfacf865af33cdf9449bed15f8f16036b9 (diff)
downloadserenity-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.cpp5
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();
}
}