mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 15:21:56 +00:00
LibWeb: Delete unused BrowsingContext::is_child_of()
This commit is contained in:
parent
6942bdcfce
commit
7b91f79817
Notes:
sideshowbarker
2024-07-17 07:43:44 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 7b91f79817
Pull-request: https://github.com/SerenityOS/serenity/pull/18219
2 changed files with 0 additions and 10 deletions
|
@ -731,14 +731,6 @@ BrowsingContext::ChosenBrowsingContext BrowsingContext::choose_a_browsing_contex
|
|||
return { chosen.ptr(), window_type };
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsers.html#child-browsing-context
|
||||
bool BrowsingContext::is_child_of(BrowsingContext const& parent) const
|
||||
{
|
||||
// A browsing context child is said to be a child browsing context of another browsing context parent,
|
||||
// if child's container document is non-null and child's container document's browsing context is parent.
|
||||
return container_document() && container_document()->browsing_context() == &parent;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dom.html#still-on-its-initial-about:blank-document
|
||||
bool BrowsingContext::still_on_its_initial_about_blank_document() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue