mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	The Window object is part of the HTML spec. :^) https://html.spec.whatwg.org/multipage/window-object.html
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			417 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			417 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(HTML::Window& window)
 | 
						|
    : RefCountForwarder(window)
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
Gfx::IntRect Screen::screen_rect() const
 | 
						|
{
 | 
						|
    return window().page()->screen_rect();
 | 
						|
}
 | 
						|
 | 
						|
}
 |