LibWeb: Add NestedHistory in DocumentState

This commit is contained in:
Aliaksandr Kalenik 2023-04-05 09:08:10 +03:00 committed by Andreas Kling
commit 51d64bdaec
Notes: sideshowbarker 2024-07-16 23:59:28 +09:00
2 changed files with 15 additions and 1 deletions

View file

@ -18,6 +18,11 @@ 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);
}
}
}
}