1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

LibWeb: Add NestedHistory in DocumentState

This commit is contained in:
Aliaksandr Kalenik 2023-04-05 09:08:10 +03:00 committed by Andreas Kling
parent a0356a0302
commit 51d64bdaec
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);
}
}
}
}