diff options
author | Vyacheslav Pukhanov <vyacheslav@pukhanov.ru> | 2021-11-24 19:15:04 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-24 19:07:48 +0100 |
commit | 3f006d81feacbdf088f554087ad4705712f8e871 (patch) | |
tree | 9f4257340057b8f8fee99553332d2ab66b185ba3 /Userland/Libraries/LibWeb/DOM/Node.h | |
parent | 58397f356f6a4359d5aefe6a5dcd618abd23cd77 (diff) | |
download | serenity-3f006d81feacbdf088f554087ad4705712f8e871.zip |
LibWeb: Add JSON serialization for nested browsing contexts
This changes allows for nested browser contexts to be embedded in the
serialized JSON of their container element (like `iframe`) and enables
their inspection in the DOM Inspector.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Node.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Node.h b/Userland/Libraries/LibWeb/DOM/Node.h index c8a85b88a6..d3be7b5b13 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.h +++ b/Userland/Libraries/LibWeb/DOM/Node.h @@ -84,6 +84,7 @@ public: virtual bool is_html_html_element() const { return false; } virtual bool is_html_template_element() const { return false; } + virtual bool is_browsing_context_container() const { return false; } ExceptionOr<NonnullRefPtr<Node>> pre_insert(NonnullRefPtr<Node>, RefPtr<Node>); ExceptionOr<NonnullRefPtr<Node>> pre_remove(NonnullRefPtr<Node>); |