mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 22:42:08 +00:00
LibWeb: Delete unused document_tree_child_browsing_context_count()
The function is no longer needed with navigables.
This commit is contained in:
parent
605d24ef7d
commit
6665f0db43
4 changed files with 0 additions and 30 deletions
|
@ -881,20 +881,6 @@ BrowsingContext::ChosenBrowsingContext BrowsingContext::choose_a_browsing_contex
|
|||
return { chosen.ptr(), window_type };
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#document-tree-child-browsing-context
|
||||
size_t BrowsingContext::document_tree_child_browsing_context_count() const
|
||||
{
|
||||
size_t count = 0;
|
||||
|
||||
// A browsing context child is a document-tree child browsing context of parent if child is a child browsing context and child's container is in a document tree.
|
||||
for_each_child([this, &count](BrowsingContext const& child) {
|
||||
if (child.is_child_of(*this) && child.container()->in_a_document_tree())
|
||||
++count;
|
||||
});
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#child-browsing-context
|
||||
bool BrowsingContext::is_child_of(BrowsingContext const& parent) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue