1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37:35 +00:00

LibWeb: Make DOMImplementation GC-allocated

This commit is contained in:
Andreas Kling 2022-08-08 15:52:48 +02:00
parent cfdb8f2a8e
commit 967a3e5a45
6 changed files with 47 additions and 26 deletions

View file

@ -300,7 +300,7 @@ public:
void completely_finish_loading();
NonnullRefPtr<DOMImplementation> implementation() const;
DOMImplementation* implementation();
RefPtr<HTML::HTMLScriptElement> current_script() const { return m_current_script; }
void set_current_script(Badge<HTML::HTMLScriptElement>, RefPtr<HTML::HTMLScriptElement> script) { m_current_script = move(script); }
@ -457,7 +457,7 @@ private:
bool m_ready_for_post_load_tasks { false };
NonnullOwnPtr<DOMImplementation> m_implementation;
JS::Handle<DOMImplementation> m_implementation;
RefPtr<HTML::HTMLScriptElement> m_current_script;
bool m_should_invalidate_styles_on_attribute_changes { true };