diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-18 20:03:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-20 10:32:12 +0200 |
commit | e36750d5913034b6081f9ae295d90de29f44384c (patch) | |
tree | 738ac9d90f8e5f147215bb8760ebc985c9ab1e32 /Userland | |
parent | 77628289c6239e55e36293a8781ba70b34f54700 (diff) | |
download | serenity-e36750d5913034b6081f9ae295d90de29f44384c.zip |
LibWeb: Remove unused Layout::Node::did_insert_into_layout_tree()
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/Node.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/Node.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp | 3 |
3 files changed, 0 insertions, 9 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp index aa9e0b7479..5125b0d769 100644 --- a/Userland/Libraries/LibWeb/Layout/Node.cpp +++ b/Userland/Libraries/LibWeb/Layout/Node.cpp @@ -201,10 +201,6 @@ NodeWithStyle::NodeWithStyle(DOM::Document& document, DOM::Node* node, CSS::Comp m_font = Platform::FontPlugin::the().default_font(); } -void NodeWithStyle::did_insert_into_layout_tree(CSS::StyleProperties const&) -{ -} - void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style) { auto& computed_values = static_cast<CSS::MutableComputedValues&>(m_computed_values); diff --git a/Userland/Libraries/LibWeb/Layout/Node.h b/Userland/Libraries/LibWeb/Layout/Node.h index 1d68abf84d..7fcd9c7953 100644 --- a/Userland/Libraries/LibWeb/Layout/Node.h +++ b/Userland/Libraries/LibWeb/Layout/Node.h @@ -170,8 +170,6 @@ public: NonnullRefPtr<NodeWithStyle> create_anonymous_wrapper() const; - void did_insert_into_layout_tree(CSS::StyleProperties const&); - protected: NodeWithStyle(DOM::Document&, DOM::Node*, NonnullRefPtr<CSS::StyleProperties>); NodeWithStyle(DOM::Document&, DOM::Node*, CSS::ComputedValues); diff --git a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp index 8d21396ff4..02d7cb2396 100644 --- a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp +++ b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp @@ -187,9 +187,6 @@ void TreeBuilder::create_layout_tree(DOM::Node& dom_node, TreeBuilder::Context& insert_node_into_inline_or_block_ancestor(layout_node); } - if (layout_node->has_style() && style) - static_cast<Layout::NodeWithStyle&>(*layout_node).did_insert_into_layout_tree(*style); - auto* shadow_root = is<DOM::Element>(dom_node) ? verify_cast<DOM::Element>(dom_node).shadow_root() : nullptr; if ((dom_node.has_children() || shadow_root) && layout_node->can_have_children()) { |