mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	Layout is initiated from Frame::layout(). It makes the document's layout node as wide as the frame, and then we'll take it from there.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			279 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			279 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include <LibHTML/Layout/LayoutDocument.h>
 | 
						|
 | 
						|
LayoutDocument::LayoutDocument(const Document& document)
 | 
						|
    : LayoutNode(&document)
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
LayoutDocument::~LayoutDocument()
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
void LayoutDocument::layout()
 | 
						|
{
 | 
						|
    rect().set_width(style().size().width());
 | 
						|
    LayoutNode::layout();
 | 
						|
}
 |