mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 01:12:44 +00:00 
			
		
		
		
	 4bb6345b2f
			
		
	
	
		4bb6345b2f
		
	
	
	
	
		
			
			These classes only needed Window to get at its realm. Pass a realm directly to construct Crypto, Encoding, HRT, IntersectionObserver, NavigationTiming, Page, RequestIdleCallback, Selection, Streams, URL, and XML classes.
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			595 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			595 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/NavigationTiming/PerformanceTiming.h>
 | |
| 
 | |
| namespace Web::NavigationTiming {
 | |
| 
 | |
| PerformanceTiming::PerformanceTiming(HTML::Window& window)
 | |
|     : PlatformObject(window.realm())
 | |
|     , m_window(window)
 | |
| {
 | |
|     set_prototype(&Bindings::cached_web_prototype(realm(), "PerformanceTiming"));
 | |
| }
 | |
| 
 | |
| PerformanceTiming::~PerformanceTiming() = default;
 | |
| 
 | |
| void PerformanceTiming::visit_edges(Cell::Visitor& visitor)
 | |
| {
 | |
|     Base::visit_edges(visitor);
 | |
|     visitor.visit(m_window.ptr());
 | |
| }
 | |
| 
 | |
| }
 |