diff options
author | Andreas Kling <kling@serenityos.org> | 2022-10-06 13:10:03 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-06 15:29:38 +0200 |
commit | 4fdfaff4ca506d239e632586f10c015311aeea11 (patch) | |
tree | 715987155fc4cb44e6bdd050250fc3c98fd3f2f8 /Userland/Libraries/LibWeb/Layout/TreeBuilder.h | |
parent | 1e26d3d02d0787a80dfa5e6eecb335d749c536f7 (diff) | |
download | serenity-4fdfaff4ca506d239e632586f10c015311aeea11.zip |
LibWeb: Split out helper functions in TreeBuilder::create_layout_tree()
Let's make this function a little easier to understand by splitting out
helpers into separate functions.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/TreeBuilder.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/TreeBuilder.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/TreeBuilder.h b/Userland/Libraries/LibWeb/Layout/TreeBuilder.h index 45be0c0837..72e75fb72f 100644 --- a/Userland/Libraries/LibWeb/Layout/TreeBuilder.h +++ b/Userland/Libraries/LibWeb/Layout/TreeBuilder.h @@ -40,6 +40,13 @@ private: void generate_missing_child_wrappers(NodeWithStyle& root); void generate_missing_parents(NodeWithStyle& root); + enum class AppendOrPrepend { + Append, + Prepend, + }; + void insert_node_into_inline_or_block_ancestor(Layout::Node&, AppendOrPrepend); + RefPtr<Layout::Node> create_pseudo_element_if_needed(DOM::Element&, CSS::Selector::PseudoElement); + RefPtr<Layout::Node> m_layout_root; Vector<Layout::NodeWithStyle&> m_ancestor_stack; }; |