mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:42:43 +00:00 
			
		
		
		
	 f7cd5662ef
			
		
	
	
		f7cd5662ef
		
	
	
	
	
		
			
			Building a whole layout tree shouldn't be a concern of Node, so this patch moves it to a separate class.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			169 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			169 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AK/RefPtr.h>
 | |
| 
 | |
| class Node;
 | |
| class LayoutNode;
 | |
| 
 | |
| class LayoutTreeBuilder {
 | |
| public:
 | |
|     LayoutTreeBuilder();
 | |
| 
 | |
|     RefPtr<LayoutNode> build(Node&);
 | |
| };
 |