2021-04-04 00:14:39 +02:00
|
|
|
/*
|
2021-04-22 22:51:19 +02:00
|
|
|
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
|
2021-04-04 00:14:39 +02:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-04-04 00:14:39 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibGfx/Rect.h>
|
|
|
|
#include <LibWeb/CSS/Screen.h>
|
|
|
|
#include <LibWeb/DOM/Document.h>
|
|
|
|
#include <LibWeb/Page/Page.h>
|
|
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
2022-03-07 23:08:26 +01:00
|
|
|
Screen::Screen(HTML::Window& window)
|
2021-12-09 15:47:48 +01:00
|
|
|
: RefCountForwarder(window)
|
2021-04-04 00:14:39 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Gfx::IntRect Screen::screen_rect() const
|
|
|
|
{
|
2021-12-09 15:47:48 +01:00
|
|
|
return window().page()->screen_rect();
|
2021-04-04 00:14:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|