summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Screen.cpp
blob: 42ec7256024371bf51449da9deee77ea31d446fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibGfx/Rect.h>
#include <LibWeb/CSS/Screen.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/Page/Page.h>

namespace Web::CSS {

Screen::Screen(HTML::Window& window)
    : RefCountForwarder(window)
{
}

Gfx::IntRect Screen::screen_rect() const
{
    return window().page()->screen_rect();
}

}