mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	
		
			
	
	
		
			18 lines
		
	
	
	
		
			324 B
		
	
	
	
		
			C++
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
	
		
			324 B
		
	
	
	
		
			C++
		
	
	
	
	
	
|   | #include <LibHTML/Layout/LayoutBlock.h>
 | ||
|  | #include <LibHTML/Layout/LayoutBreak.h>
 | ||
|  | 
 | ||
|  | LayoutBreak::LayoutBreak(const HTMLBRElement& element) | ||
|  |     : LayoutNode(&element) | ||
|  | { | ||
|  |     set_inline(true); | ||
|  | } | ||
|  | 
 | ||
|  | LayoutBreak::~LayoutBreak() | ||
|  | { | ||
|  | } | ||
|  | 
 | ||
|  | void LayoutBreak::split_into_lines(LayoutBlock& block) | ||
|  | { | ||
|  |     block.line_boxes().append(LineBox()); | ||
|  | } |