mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibWeb: Remove list_of_descendant_browsing_contexts()
No longer used after migrating to navigables.
This commit is contained in:
parent
2175c85cea
commit
531025465a
2 changed files with 0 additions and 24 deletions
|
@ -2705,27 +2705,6 @@ Vector<JS::Handle<HTML::Navigable>> Document::document_tree_child_navigables()
|
||||||
return navigables;
|
return navigables;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/browsers.html#list-of-the-descendant-browsing-contexts
|
|
||||||
Vector<JS::Handle<HTML::BrowsingContext>> Document::list_of_descendant_browsing_contexts() const
|
|
||||||
{
|
|
||||||
// 1. Let list be an empty list.
|
|
||||||
Vector<JS::Handle<HTML::BrowsingContext>> list;
|
|
||||||
|
|
||||||
// 2. For each browsing context container container,
|
|
||||||
// whose nested browsing context is non-null and whose shadow-including root is d, in shadow-including tree order:
|
|
||||||
|
|
||||||
// NOTE: We already store our browsing contexts in a tree structure, so we can simply collect all the descendants
|
|
||||||
// of this document's browsing context.
|
|
||||||
if (browsing_context()) {
|
|
||||||
browsing_context()->for_each_in_subtree([&](auto& context) {
|
|
||||||
list.append(JS::make_handle(context));
|
|
||||||
return IterationDecision::Continue;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/document-lifecycle.html#unloading-document-cleanup-steps
|
// https://html.spec.whatwg.org/multipage/document-lifecycle.html#unloading-document-cleanup-steps
|
||||||
void Document::run_unloading_cleanup_steps()
|
void Document::run_unloading_cleanup_steps()
|
||||||
{
|
{
|
||||||
|
|
|
@ -471,9 +471,6 @@ public:
|
||||||
// https://html.spec.whatwg.org/multipage/dom.html#concept-document-policy-container
|
// https://html.spec.whatwg.org/multipage/dom.html#concept-document-policy-container
|
||||||
HTML::PolicyContainer policy_container() const;
|
HTML::PolicyContainer policy_container() const;
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/browsers.html#list-of-the-descendant-browsing-contexts
|
|
||||||
Vector<JS::Handle<HTML::BrowsingContext>> list_of_descendant_browsing_contexts() const;
|
|
||||||
|
|
||||||
Vector<JS::Handle<HTML::Navigable>> descendant_navigables();
|
Vector<JS::Handle<HTML::Navigable>> descendant_navigables();
|
||||||
Vector<JS::Handle<HTML::Navigable>> const descendant_navigables() const;
|
Vector<JS::Handle<HTML::Navigable>> const descendant_navigables() const;
|
||||||
Vector<JS::Handle<HTML::Navigable>> inclusive_descendant_navigables();
|
Vector<JS::Handle<HTML::Navigable>> inclusive_descendant_navigables();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue