diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-14 18:37:37 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-12-15 06:56:37 -0500 |
commit | 2a66fc6cae8ef09e780cd795bf0b1d7f8844f4ec (patch) | |
tree | 51cf288c14d5fd321c2eaa03f21bdac2f94ea756 /Userland/Libraries/LibWeb/HTML | |
parent | 029db614e3c04279b9ae6c7e21e07baeccad63fd (diff) | |
download | serenity-2a66fc6cae8ef09e780cd795bf0b1d7f8844f4ec.zip |
LibJS: Add make_handle({Nonnull,}GCPtr<T>) overloads
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp b/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp index ebb01a6018..94120c1150 100644 --- a/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp +++ b/Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp @@ -323,7 +323,7 @@ Vector<JS::Handle<DOM::Document>> EventLoop::documents_in_this_event_loop() cons Vector<JS::Handle<DOM::Document>> documents; for (auto& document : m_documents) { VERIFY(document); - documents.append(JS::make_handle(*document.ptr())); + documents.append(JS::make_handle(*document)); } return documents; } diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp index fb12da26a6..4a001fc4f6 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp +++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp @@ -1174,7 +1174,7 @@ Create: auto new_element = insert_html_element(HTMLToken::make_start_tag(entry->element->local_name())); // 9. Replace the entry for entry in the list with an entry for new element. - m_list_of_active_formatting_elements.entries().at(index).element = JS::make_handle(new_element.ptr()); + m_list_of_active_formatting_elements.entries().at(index).element = JS::make_handle(new_element); // 10. If the entry for new element in the list of active formatting elements is not the last entry in the list, return to the step labeled advance. if (index != m_list_of_active_formatting_elements.entries().size() - 1) |