2021-04-03 19:14:39 -03:00
|
|
|
/*
|
2021-04-22 17:51:19 -03:00
|
|
|
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
|
2021-04-03 19:14:39 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-04-03 19:14:39 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
{
|
2021-09-09 08:45:03 -03:00
|
|
|
return m_window.page()->screen_rect();
|
2021-04-03 19:14:39 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|