mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-28 11:02:36 +00:00 
			
		
		
		
	 268b9c5d90
			
		
	
	
		268b9c5d90
		
	
	
	
	
		
			
			This removes a set of complex reference cycles between DOM, layout tree and browsing context. It also makes lifetimes much easier to reason about, as the DOM and layout trees are now free to keep each other alive.
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			628 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			628 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/Bindings/Intrinsics.h>
 | |
| #include <LibWeb/SVG/SVGClipPathElement.h>
 | |
| 
 | |
| namespace Web::SVG {
 | |
| 
 | |
| SVGClipPathElement::SVGClipPathElement(DOM::Document& document, DOM::QualifiedName qualified_name)
 | |
|     : SVGElement(document, move(qualified_name))
 | |
| {
 | |
|     set_prototype(&Bindings::cached_web_prototype(realm(), "SVGClipPathElement"));
 | |
| }
 | |
| 
 | |
| SVGClipPathElement::~SVGClipPathElement()
 | |
| {
 | |
| }
 | |
| 
 | |
| JS::GCPtr<Layout::Node> SVGClipPathElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties>)
 | |
| {
 | |
|     return nullptr;
 | |
| }
 | |
| 
 | |
| }
 |