diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp index 5110892e8a5..d5a88905abe 100644 --- a/Userland/Libraries/LibWeb/Layout/Node.cpp +++ b/Userland/Libraries/LibWeb/Layout/Node.cpp @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -23,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -31,7 +29,6 @@ #include #include #include -#include #include #include @@ -39,7 +36,6 @@ namespace Web::Layout { Node::Node(DOM::Document& document, DOM::Node* node) : m_dom_node(node ? *node : document) - , m_browsing_context(*document.browsing_context()) , m_anonymous(node == nullptr) { if (node) @@ -54,7 +50,6 @@ void Node::visit_edges(Cell::Visitor& visitor) visitor.visit(m_dom_node); visitor.visit(m_paintable); visitor.visit(m_pseudo_element_generator); - visitor.visit(m_browsing_context); TreeNode::visit_edges(visitor); } @@ -207,16 +202,6 @@ bool Node::establishes_stacking_context() const return computed_values().opacity() < 1.0f; } -HTML::BrowsingContext const& Node::browsing_context() const -{ - return *m_browsing_context; -} - -HTML::BrowsingContext& Node::browsing_context() -{ - return *m_browsing_context; -} - JS::GCPtr Node::navigable() const { return document().navigable(); diff --git a/Userland/Libraries/LibWeb/Layout/Node.h b/Userland/Libraries/LibWeb/Layout/Node.h index 8ceb0e78b33..80391bef8e7 100644 --- a/Userland/Libraries/LibWeb/Layout/Node.h +++ b/Userland/Libraries/LibWeb/Layout/Node.h @@ -73,9 +73,6 @@ public: DOM::Document& document(); DOM::Document const& document() const; - HTML::BrowsingContext const& browsing_context() const; - HTML::BrowsingContext& browsing_context(); - JS::GCPtr navigable() const; Viewport const& root() const; @@ -186,8 +183,6 @@ private: JS::NonnullGCPtr m_dom_node; JS::GCPtr m_paintable; - JS::NonnullGCPtr m_browsing_context; - JS::GCPtr m_pseudo_element_generator; bool m_anonymous { false };