diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Screen.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Screen.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Screen.h b/Userland/Libraries/LibWeb/CSS/Screen.h index ea6de94951..ce0e1abd9e 100644 --- a/Userland/Libraries/LibWeb/CSS/Screen.h +++ b/Userland/Libraries/LibWeb/CSS/Screen.h @@ -15,7 +15,7 @@ namespace Web::CSS { class Screen final - : public RefCountForwarder<HTML::Window> + : public RefCounted<Screen> , public Bindings::Wrappable { public: @@ -37,9 +37,11 @@ public: private: explicit Screen(HTML::Window&); - HTML::Window const& window() const { return ref_count_target(); } + HTML::Window const& window() const { return *m_window; } Gfx::IntRect screen_rect() const; + + JS::Handle<HTML::Window> m_window; }; } |