LibWeb: Remove did_stop_being_active_document_in_browsing_context()

No longer used after migrating to navigables.
This commit is contained in:
Aliaksandr Kalenik 2024-02-03 11:29:40 +01:00 committed by Alexander Kalenik
commit 2175c85cea
Notes: sideshowbarker 2024-07-17 02:55:44 +09:00
2 changed files with 0 additions and 12 deletions

View file

@ -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<HTML::BrowsingContext>)
{
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();

View file

@ -504,7 +504,6 @@ public:
bool is_allowed_to_use_feature(PolicyControlledFeature) const;
void did_stop_being_active_document_in_browsing_context(Badge<HTML::BrowsingContext>);
void did_stop_being_active_document_in_navigable();
bool query_command_supported(String const&) const;