1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

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.
This commit is contained in:
Vyacheslav Pukhanov 2021-11-24 19:15:04 +03:00 committed by Andreas Kling
parent 58397f356f
commit 3f006d81fe
4 changed files with 21 additions and 1 deletions

View file

@ -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>);