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

LibWeb: Move SVGElement's dataset construction to initialize()

It's not safe to allocate new cells while in a cell constructor.
This commit is contained in:
Andreas Kling 2023-05-21 13:25:03 +02:00
parent 055dabc123
commit 0f4b82bdea
2 changed files with 7 additions and 3 deletions

View file

@ -25,7 +25,7 @@ protected:
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;
JS::NonnullGCPtr<HTML::DOMStringMap> m_dataset;
JS::GCPtr<HTML::DOMStringMap> m_dataset;
};
}