12345678910111213141516171819202122232425262728 |
- /*
- * 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);
- for (auto& nested_history : m_nested_histories) {
- for (auto& entry : nested_history.entries) {
- visitor.visit(entry);
- }
- }
- }
- }
|