1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

LibJS+LibWeb: Normalize calls to Base::visit_edges in GC objects

This commit is contained in:
Matthew Olsson 2023-03-20 13:37:11 -07:00 committed by Andreas Kling
parent 98ed74087f
commit 82eeee2008
17 changed files with 20 additions and 15 deletions

View file

@ -15,7 +15,7 @@ DOMEventListener::~DOMEventListener() = default;
void DOMEventListener::visit_edges(Cell::Visitor& visitor)
{
Cell::visit_edges(visitor);
Base::visit_edges(visitor);
visitor.visit(callback.ptr());
visitor.visit(signal.ptr());
}

View file

@ -16,6 +16,8 @@ namespace Web::DOM {
// https://dom.spec.whatwg.org/#concept-event-listener
// NOTE: The spec calls this "event listener", and it's *importantly* not the same as "EventListener"
class DOMEventListener : public JS::Cell {
JS_CELL(DOMEventListener, JS::Cell);
public:
DOMEventListener();
~DOMEventListener();
@ -43,7 +45,6 @@ public:
private:
virtual void visit_edges(Cell::Visitor&) override;
virtual StringView class_name() const override { return "DOMEventListener"sv; }
};
}