summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/Screen.cpp
blob: df567837b477539cf2f439ffd249941c3dd5bbac (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
25
/*
 * Copyright (c) 2021, Linus Groh <mail@linusgroh.de>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#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)
{
}

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

}