mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 02:12:45 +00:00 
			
		
		
		
	 7e1bf4d300
			
		
	
	
		7e1bf4d300
		
	
	
	
	
		
			
			Instead of making each Layout::Node compute style for itself, we now compute it in TreeBuilder before even calling create_layout_node(). For non-element DOM nodes, we create the style and layout tree node in TreeBuilder. This allows us to move create_layout_node() from DOM::Node to DOM::Element.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			513 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			513 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibWeb/SVG/SVGGraphicsElement.h>
 | |
| 
 | |
| namespace Web::SVG {
 | |
| 
 | |
| class SVGGElement final : public SVGGraphicsElement {
 | |
| public:
 | |
|     using WrapperType = Bindings::SVGPathElementWrapper;
 | |
| 
 | |
|     SVGGElement(DOM::Document&, QualifiedName);
 | |
|     virtual ~SVGGElement() override = default;
 | |
| 
 | |
|     virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
 | |
| };
 | |
| 
 | |
| }
 |