1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

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
parent f757a7cfa8
commit 2175c85cea
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();