mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:12:44 +00:00 
			
		
		
		
	 1422bd45eb
			
		
	
	
		1422bd45eb
		
	
	
	
	
		
			
			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();
 | |
| }
 | |
| 
 | |
| }
 |