mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibWeb: Implement "destroy" operation for documents
This is basically the old "discard" updated for the world of navigables. Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
This commit is contained in:
parent
7af09481f5
commit
1b78e0f059
Notes:
sideshowbarker
2024-07-17 09:56:35 +09:00
Author: https://github.com/awesomekling
Commit: 1b78e0f059
Pull-request: https://github.com/SerenityOS/serenity/pull/19535
2 changed files with 36 additions and 0 deletions
|
@ -448,6 +448,8 @@ public:
|
|||
Vector<JS::Handle<HTML::Navigable>> descendant_navigables();
|
||||
Vector<JS::Handle<HTML::Navigable>> inclusive_descendant_navigables();
|
||||
|
||||
void destroy();
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/window-object.html#discard-a-document
|
||||
void discard();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue