diff options
author | Andreas Kling <kling@serenityos.org> | 2020-11-25 20:29:03 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-25 21:27:18 +0100 |
commit | d477039abca1835814a4e02105d1b32c4ff94979 (patch) | |
tree | 2b58b8bdac368d2d82582194e644e816240ebc28 /Libraries | |
parent | b1e75437c98f3164a01790f9fa47b1a2870a810b (diff) | |
download | serenity-d477039abca1835814a4e02105d1b32c4ff94979.zip |
LibWeb: Rename Layout::LayoutTreeBuilder => Layout::TreeBuilder
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Libraries/LibWeb/DOM/Document.cpp | 4 | ||||
-rw-r--r-- | Libraries/LibWeb/DOM/Element.cpp | 4 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/TreeBuilder.cpp (renamed from Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp) | 6 | ||||
-rw-r--r-- | Libraries/LibWeb/Layout/TreeBuilder.h (renamed from Libraries/LibWeb/Layout/LayoutTreeBuilder.h) | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/Libraries/LibWeb/CMakeLists.txt b/Libraries/LibWeb/CMakeLists.txt index 5d0ee2b27e..35d12d0299 100644 --- a/Libraries/LibWeb/CMakeLists.txt +++ b/Libraries/LibWeb/CMakeLists.txt @@ -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 diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index efd8d90b75..3f13b3f663 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.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)); } diff --git a/Libraries/LibWeb/DOM/Element.cpp b/Libraries/LibWeb/DOM/Element.cpp index 7e0ab56d8f..0ff0371be7 100644 --- a/Libraries/LibWeb/DOM/Element.cpp +++ b/Libraries/LibWeb/DOM/Element.cpp @@ -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; } diff --git a/Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp b/Libraries/LibWeb/Layout/TreeBuilder.cpp index 83fd63de7a..7b20178093 100644 --- a/Libraries/LibWeb/Layout/LayoutTreeBuilder.cpp +++ b/Libraries/LibWeb/Layout/TreeBuilder.cpp @@ -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."; diff --git a/Libraries/LibWeb/Layout/LayoutTreeBuilder.h b/Libraries/LibWeb/Layout/TreeBuilder.h index fe96b3db88..23da674584 100644 --- a/Libraries/LibWeb/Layout/LayoutTreeBuilder.h +++ b/Libraries/LibWeb/Layout/TreeBuilder.h @@ -31,9 +31,9 @@ namespace Web::Layout { -class LayoutTreeBuilder { +class TreeBuilder { public: - LayoutTreeBuilder(); + TreeBuilder(); RefPtr<Node> build(DOM::Node&); }; |