mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 15:47:42 +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/InlineFormattingContext.cpp
|
||||||
Layout/InlineNode.cpp
|
Layout/InlineNode.cpp
|
||||||
Layout/LayoutPosition.cpp
|
Layout/LayoutPosition.cpp
|
||||||
Layout/LayoutTreeBuilder.cpp
|
|
||||||
Layout/LineBox.cpp
|
Layout/LineBox.cpp
|
||||||
Layout/LineBoxFragment.cpp
|
Layout/LineBoxFragment.cpp
|
||||||
Layout/ListItemBox.cpp
|
Layout/ListItemBox.cpp
|
||||||
|
@ -168,6 +167,7 @@ set(SOURCES
|
||||||
Layout/TableRowBox.cpp
|
Layout/TableRowBox.cpp
|
||||||
Layout/TableRowGroupBox.cpp
|
Layout/TableRowGroupBox.cpp
|
||||||
Layout/TextNode.cpp
|
Layout/TextNode.cpp
|
||||||
|
Layout/TreeBuilder.cpp
|
||||||
Layout/WidgetBox.cpp
|
Layout/WidgetBox.cpp
|
||||||
LayoutTreeModel.cpp
|
LayoutTreeModel.cpp
|
||||||
Loader/FrameLoader.cpp
|
Loader/FrameLoader.cpp
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
#include <LibWeb/InProcessWebView.h>
|
#include <LibWeb/InProcessWebView.h>
|
||||||
#include <LibWeb/Layout/BlockFormattingContext.h>
|
#include <LibWeb/Layout/BlockFormattingContext.h>
|
||||||
#include <LibWeb/Layout/InitialContainingBlockBox.h>
|
#include <LibWeb/Layout/InitialContainingBlockBox.h>
|
||||||
#include <LibWeb/Layout/LayoutTreeBuilder.h>
|
#include <LibWeb/Layout/TreeBuilder.h>
|
||||||
#include <LibWeb/Namespace.h>
|
#include <LibWeb/Namespace.h>
|
||||||
#include <LibWeb/Origin.h>
|
#include <LibWeb/Origin.h>
|
||||||
#include <LibWeb/Page/Frame.h>
|
#include <LibWeb/Page/Frame.h>
|
||||||
|
@ -348,7 +348,7 @@ void Document::layout()
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!m_layout_root) {
|
if (!m_layout_root) {
|
||||||
Layout::LayoutTreeBuilder tree_builder;
|
Layout::TreeBuilder tree_builder;
|
||||||
m_layout_root = static_ptr_cast<Layout::InitialContainingBlockBox>(tree_builder.build(*this));
|
m_layout_root = static_ptr_cast<Layout::InitialContainingBlockBox>(tree_builder.build(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,12 +36,12 @@
|
||||||
#include <LibWeb/HTML/Parser/HTMLDocumentParser.h>
|
#include <LibWeb/HTML/Parser/HTMLDocumentParser.h>
|
||||||
#include <LibWeb/Layout/BlockBox.h>
|
#include <LibWeb/Layout/BlockBox.h>
|
||||||
#include <LibWeb/Layout/InlineNode.h>
|
#include <LibWeb/Layout/InlineNode.h>
|
||||||
#include <LibWeb/Layout/LayoutTreeBuilder.h>
|
|
||||||
#include <LibWeb/Layout/ListItemBox.h>
|
#include <LibWeb/Layout/ListItemBox.h>
|
||||||
#include <LibWeb/Layout/TableBox.h>
|
#include <LibWeb/Layout/TableBox.h>
|
||||||
#include <LibWeb/Layout/TableCellBox.h>
|
#include <LibWeb/Layout/TableCellBox.h>
|
||||||
#include <LibWeb/Layout/TableRowBox.h>
|
#include <LibWeb/Layout/TableRowBox.h>
|
||||||
#include <LibWeb/Layout/TableRowGroupBox.h>
|
#include <LibWeb/Layout/TableRowGroupBox.h>
|
||||||
|
#include <LibWeb/Layout/TreeBuilder.h>
|
||||||
|
|
||||||
namespace Web::DOM {
|
namespace Web::DOM {
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ void Element::recompute_style()
|
||||||
if (style->display() == CSS::Display::None)
|
if (style->display() == CSS::Display::None)
|
||||||
return;
|
return;
|
||||||
// We need a new layout tree here!
|
// We need a new layout tree here!
|
||||||
Layout::LayoutTreeBuilder tree_builder;
|
Layout::TreeBuilder tree_builder;
|
||||||
tree_builder.build(*this);
|
tree_builder.build(*this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,14 +26,14 @@
|
||||||
|
|
||||||
#include <LibWeb/DOM/Document.h>
|
#include <LibWeb/DOM/Document.h>
|
||||||
#include <LibWeb/DOM/ParentNode.h>
|
#include <LibWeb/DOM/ParentNode.h>
|
||||||
#include <LibWeb/Layout/LayoutTreeBuilder.h>
|
|
||||||
#include <LibWeb/Layout/Node.h>
|
#include <LibWeb/Layout/Node.h>
|
||||||
#include <LibWeb/Layout/TableBox.h>
|
#include <LibWeb/Layout/TableBox.h>
|
||||||
#include <LibWeb/Layout/TextNode.h>
|
#include <LibWeb/Layout/TextNode.h>
|
||||||
|
#include <LibWeb/Layout/TreeBuilder.h>
|
||||||
|
|
||||||
namespace Web::Layout {
|
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;
|
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()) {
|
if (!is<DOM::Document>(node) && node.has_children()) {
|
||||||
dbg() << "FIXME: Support building partial layout trees.";
|
dbg() << "FIXME: Support building partial layout trees.";
|
|
@ -31,9 +31,9 @@
|
||||||
|
|
||||||
namespace Web::Layout {
|
namespace Web::Layout {
|
||||||
|
|
||||||
class LayoutTreeBuilder {
|
class TreeBuilder {
|
||||||
public:
|
public:
|
||||||
LayoutTreeBuilder();
|
TreeBuilder();
|
||||||
|
|
||||||
RefPtr<Node> build(DOM::Node&);
|
RefPtr<Node> build(DOM::Node&);
|
||||||
};
|
};
|
Loading…
Add table
Add a link
Reference in a new issue