12345678910111213141516171819202122232425 |
- /*
- * 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/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();
- }
- }
|