1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

LibWeb: Add missing DOM::Position::visit_edges()

Caught by running the test suite under ASAN.
This commit is contained in:
Andreas Kling 2023-12-12 01:08:07 +01:00
parent 6cbcd521a2
commit 5204020d42
2 changed files with 8 additions and 0 deletions

View file

@ -21,6 +21,12 @@ Position::Position(JS::GCPtr<Node> node, unsigned offset)
{
}
void Position::visit_edges(Visitor& visitor)
{
Base::visit_edges(visitor);
visitor.visit(m_node);
}
ErrorOr<String> Position::to_string() const
{
if (!node())