mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
24 lines
416 B
C++
24 lines
416 B
C++
/*
|
|
* 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(DOM::Window& window)
|
|
: RefCountForwarder(window)
|
|
{
|
|
}
|
|
|
|
Gfx::IntRect Screen::screen_rect() const
|
|
{
|
|
return window().page()->screen_rect();
|
|
}
|
|
|
|
}
|