mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:17:35 +00:00
LibWeb: Add missing DOM::Position::visit_edges()
Caught by running the test suite under ASAN.
This commit is contained in:
parent
6cbcd521a2
commit
5204020d42
2 changed files with 8 additions and 0 deletions
|
@ -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())
|
||||
|
|
|
@ -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 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue