1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:58:12 +00:00

LibWeb: Make DOMStringMap GC-allocated

This commit is contained in:
Andreas Kling 2022-08-08 14:49:54 +02:00
parent 72bacba97b
commit ae11d70b0c
8 changed files with 35 additions and 25 deletions

View file

@ -38,7 +38,8 @@ public:
bool cannot_navigate() const;
NonnullRefPtr<DOMStringMap> dataset() const { return m_dataset; }
DOMStringMap* dataset() { return m_dataset.cell(); }
DOMStringMap const* dataset() const { return m_dataset.cell(); }
void focus();
@ -65,7 +66,7 @@ private:
};
ContentEditableState content_editable_state() const;
NonnullRefPtr<DOMStringMap> m_dataset;
JS::Handle<DOMStringMap> m_dataset;
// https://html.spec.whatwg.org/multipage/interaction.html#locked-for-focus
bool m_locked_for_focus { false };