mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 00:12:44 +00:00 
			
		
		
		
	 f0c5f77f99
			
		
	
	
		f0c5f77f99
		
	
	
	
	
		
			
			These classes only needed Window to get at its realm. Pass a realm directly to construct HTML classes.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			506 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			506 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/HTML/HTMLDirectoryElement.h>
 | |
| #include <LibWeb/HTML/Window.h>
 | |
| 
 | |
| namespace Web::HTML {
 | |
| 
 | |
| HTMLDirectoryElement::HTMLDirectoryElement(DOM::Document& document, DOM::QualifiedName qualified_name)
 | |
|     : HTMLElement(document, move(qualified_name))
 | |
| {
 | |
|     set_prototype(&Bindings::cached_web_prototype(realm(), "HTMLDirectoryElement"));
 | |
| }
 | |
| 
 | |
| HTMLDirectoryElement::~HTMLDirectoryElement() = default;
 | |
| }
 |