mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:37:44 +00:00
LibWeb: Rename BrowsingContextContainer => NavigableContainer
The "browsing context container" concept in the HTML spec has been replaced with "navigable container". Renaming this is the first step of many towards implementing the new world. Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
This commit is contained in:
parent
0f9f6aef81
commit
d8ccc2d54e
17 changed files with 61 additions and 60 deletions
|
@ -1706,8 +1706,8 @@ bool Document::is_fully_active() const
|
|||
return false;
|
||||
if (browsing_context->is_top_level())
|
||||
return true;
|
||||
if (auto* browsing_context_container_document = browsing_context->container_document()) {
|
||||
if (browsing_context_container_document->is_fully_active())
|
||||
if (auto* navigable_container_document = browsing_context->container_document()) {
|
||||
if (navigable_container_document->is_fully_active())
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -29,10 +29,10 @@
|
|||
#include <LibWeb/DOM/Range.h>
|
||||
#include <LibWeb/DOM/ShadowRoot.h>
|
||||
#include <LibWeb/DOM/StaticNodeList.h>
|
||||
#include <LibWeb/HTML/BrowsingContextContainer.h>
|
||||
#include <LibWeb/HTML/CustomElements/CustomElementReactionNames.h>
|
||||
#include <LibWeb/HTML/HTMLAnchorElement.h>
|
||||
#include <LibWeb/HTML/HTMLStyleElement.h>
|
||||
#include <LibWeb/HTML/NavigableContainer.h>
|
||||
#include <LibWeb/HTML/Origin.h>
|
||||
#include <LibWeb/HTML/Parser/HTMLParser.h>
|
||||
#include <LibWeb/Infra/CharacterTypes.h>
|
||||
|
@ -1070,8 +1070,8 @@ void Node::serialize_tree_as_json(JsonObjectSerializer<StringBuilder>& object) c
|
|||
MUST(attributes.finish());
|
||||
}
|
||||
|
||||
if (element->is_browsing_context_container()) {
|
||||
auto const* container = static_cast<HTML::BrowsingContextContainer const*>(element);
|
||||
if (element->is_navigable_container()) {
|
||||
auto const* container = static_cast<HTML::NavigableContainer const*>(element);
|
||||
if (auto const* content_document = container->content_document()) {
|
||||
auto children = MUST(object.add_array("children"sv));
|
||||
JsonObjectSerializer<StringBuilder> content_document_object = MUST(children.add_object());
|
||||
|
|
|
@ -90,7 +90,7 @@ public:
|
|||
virtual bool is_html_input_element() const { return false; }
|
||||
virtual bool is_html_progress_element() const { return false; }
|
||||
virtual bool is_html_template_element() const { return false; }
|
||||
virtual bool is_browsing_context_container() const { return false; }
|
||||
virtual bool is_navigable_container() const { return false; }
|
||||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Node>> pre_insert(JS::NonnullGCPtr<Node>, JS::GCPtr<Node>);
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Node>> pre_remove(JS::NonnullGCPtr<Node>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue