1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-28 16:42:12 +00:00

LibWeb: Delete unused document_tree_child_browsing_context_count()

The function is no longer needed with navigables.
This commit is contained in:
Aliaksandr Kalenik 2023-09-03 23:04:35 +02:00 committed by Andreas Kling
parent 605d24ef7d
commit 6665f0db43
4 changed files with 0 additions and 30 deletions

View file

@ -1394,16 +1394,4 @@ JS::NonnullGCPtr<CustomElementRegistry> Window::custom_elements()
return JS::NonnullGCPtr { *m_custom_element_registry };
}
// https://html.spec.whatwg.org/multipage/window-object.html#number-of-document-tree-child-browsing-contexts
size_t Window::document_tree_child_browsing_context_count() const
{
// 1. If W's browsing context is null, then return 0.
auto* this_browsing_context = associated_document().browsing_context();
if (!this_browsing_context)
return 0;
// 2. Return the number of document-tree child browsing contexts of W's browsing context.
return this_browsing_context->document_tree_child_browsing_context_count();
}
}