1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +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())

View file

@ -45,6 +45,8 @@ public:
private:
Position(JS::GCPtr<Node>, unsigned offset);
virtual void visit_edges(Visitor&) override;
JS::GCPtr<Node> m_node;
unsigned m_offset { 0 };
};