mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Make DOMStringMap GC-allocated
This commit is contained in:
parent
72bacba97b
commit
ae11d70b0c
Notes:
sideshowbarker
2024-07-17 07:28:55 +09:00
Author: https://github.com/awesomekling
Commit: ae11d70b0c
Pull-request: https://github.com/SerenityOS/serenity/pull/14816
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg ✅
8 changed files with 35 additions and 25 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue