mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
LibWeb: Add HTML::DocumentState
This represents the new "document state" concept from the HTML spec. Document states are primarily used in session history entries. Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
This commit is contained in:
parent
3b0e5a87db
commit
1df52ea94c
4 changed files with 123 additions and 0 deletions
23
Userland/Libraries/LibWeb/HTML/DocumentState.cpp
Normal file
23
Userland/Libraries/LibWeb/HTML/DocumentState.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/HTML/DocumentState.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
DocumentState::DocumentState() = default;
|
||||
|
||||
DocumentState::~DocumentState() = default;
|
||||
|
||||
void DocumentState::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_document);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue