From 2175c85ceac5d2d94b5e0abf1ca6ac4e80ec948a Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sat, 3 Feb 2024 11:29:40 +0100 Subject: [PATCH] LibWeb: Remove did_stop_being_active_document_in_browsing_context() No longer used after migrating to navigables. --- Userland/Libraries/LibWeb/DOM/Document.cpp | 11 ----------- Userland/Libraries/LibWeb/DOM/Document.h | 1 - 2 files changed, 12 deletions(-) diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 7734cad659..864efb4d86 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -2960,17 +2960,6 @@ bool Document::is_allowed_to_use_feature(PolicyControlledFeature feature) const return false; } -void Document::did_stop_being_active_document_in_browsing_context(Badge) -{ - tear_down_layout_tree(); - - auto observers_to_notify = m_document_observers.values(); - for (auto& document_observer : observers_to_notify) { - if (document_observer->document_became_inactive()) - document_observer->document_became_inactive()->function()(); - } -} - void Document::did_stop_being_active_document_in_navigable() { tear_down_layout_tree(); diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h index a3d389cb9c..b0b061496e 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.h +++ b/Userland/Libraries/LibWeb/DOM/Document.h @@ -504,7 +504,6 @@ public: bool is_allowed_to_use_feature(PolicyControlledFeature) const; - void did_stop_being_active_document_in_browsing_context(Badge); void did_stop_being_active_document_in_navigable(); bool query_command_supported(String const&) const;