mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	LibWeb: Rename Layout::LayoutTreeBuilder => Layout::TreeBuilder
This commit is contained in:
		
							parent
							
								
									b1e75437c9
								
							
						
					
					
						commit
						d477039abc
					
				
					 5 changed files with 10 additions and 10 deletions
				
			
		|  | @ -151,7 +151,6 @@ set(SOURCES | |||
|     Layout/InlineFormattingContext.cpp | ||||
|     Layout/InlineNode.cpp | ||||
|     Layout/LayoutPosition.cpp | ||||
|     Layout/LayoutTreeBuilder.cpp | ||||
|     Layout/LineBox.cpp | ||||
|     Layout/LineBoxFragment.cpp | ||||
|     Layout/ListItemBox.cpp | ||||
|  | @ -168,6 +167,7 @@ set(SOURCES | |||
|     Layout/TableRowBox.cpp | ||||
|     Layout/TableRowGroupBox.cpp | ||||
|     Layout/TextNode.cpp | ||||
|     Layout/TreeBuilder.cpp | ||||
|     Layout/WidgetBox.cpp | ||||
|     LayoutTreeModel.cpp | ||||
|     Loader/FrameLoader.cpp | ||||
|  |  | |||
|  | @ -56,7 +56,7 @@ | |||
| #include <LibWeb/InProcessWebView.h> | ||||
| #include <LibWeb/Layout/BlockFormattingContext.h> | ||||
| #include <LibWeb/Layout/InitialContainingBlockBox.h> | ||||
| #include <LibWeb/Layout/LayoutTreeBuilder.h> | ||||
| #include <LibWeb/Layout/TreeBuilder.h> | ||||
| #include <LibWeb/Namespace.h> | ||||
| #include <LibWeb/Origin.h> | ||||
| #include <LibWeb/Page/Frame.h> | ||||
|  | @ -348,7 +348,7 @@ void Document::layout() | |||
|         return; | ||||
| 
 | ||||
|     if (!m_layout_root) { | ||||
|         Layout::LayoutTreeBuilder tree_builder; | ||||
|         Layout::TreeBuilder tree_builder; | ||||
|         m_layout_root = static_ptr_cast<Layout::InitialContainingBlockBox>(tree_builder.build(*this)); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
|  | @ -36,12 +36,12 @@ | |||
| #include <LibWeb/HTML/Parser/HTMLDocumentParser.h> | ||||
| #include <LibWeb/Layout/BlockBox.h> | ||||
| #include <LibWeb/Layout/InlineNode.h> | ||||
| #include <LibWeb/Layout/LayoutTreeBuilder.h> | ||||
| #include <LibWeb/Layout/ListItemBox.h> | ||||
| #include <LibWeb/Layout/TableBox.h> | ||||
| #include <LibWeb/Layout/TableCellBox.h> | ||||
| #include <LibWeb/Layout/TableRowBox.h> | ||||
| #include <LibWeb/Layout/TableRowGroupBox.h> | ||||
| #include <LibWeb/Layout/TreeBuilder.h> | ||||
| 
 | ||||
| namespace Web::DOM { | ||||
| 
 | ||||
|  | @ -206,7 +206,7 @@ void Element::recompute_style() | |||
|         if (style->display() == CSS::Display::None) | ||||
|             return; | ||||
|         // We need a new layout tree here!
 | ||||
|         Layout::LayoutTreeBuilder tree_builder; | ||||
|         Layout::TreeBuilder tree_builder; | ||||
|         tree_builder.build(*this); | ||||
|         return; | ||||
|     } | ||||
|  |  | |||
|  | @ -26,14 +26,14 @@ | |||
| 
 | ||||
| #include <LibWeb/DOM/Document.h> | ||||
| #include <LibWeb/DOM/ParentNode.h> | ||||
| #include <LibWeb/Layout/LayoutTreeBuilder.h> | ||||
| #include <LibWeb/Layout/Node.h> | ||||
| #include <LibWeb/Layout/TableBox.h> | ||||
| #include <LibWeb/Layout/TextNode.h> | ||||
| #include <LibWeb/Layout/TreeBuilder.h> | ||||
| 
 | ||||
| namespace Web::Layout { | ||||
| 
 | ||||
| LayoutTreeBuilder::LayoutTreeBuilder() | ||||
| TreeBuilder::TreeBuilder() | ||||
| { | ||||
| } | ||||
| 
 | ||||
|  | @ -77,7 +77,7 @@ static RefPtr<Node> create_layout_tree(DOM::Node& node, const CSS::StyleProperti | |||
|     return layout_node; | ||||
| } | ||||
| 
 | ||||
| RefPtr<Node> LayoutTreeBuilder::build(DOM::Node& node) | ||||
| RefPtr<Node> TreeBuilder::build(DOM::Node& node) | ||||
| { | ||||
|     if (!is<DOM::Document>(node) && node.has_children()) { | ||||
|         dbg() << "FIXME: Support building partial layout trees."; | ||||
|  | @ -31,9 +31,9 @@ | |||
| 
 | ||||
| namespace Web::Layout { | ||||
| 
 | ||||
| class LayoutTreeBuilder { | ||||
| class TreeBuilder { | ||||
| public: | ||||
|     LayoutTreeBuilder(); | ||||
|     TreeBuilder(); | ||||
| 
 | ||||
|     RefPtr<Node> build(DOM::Node&); | ||||
| }; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling