From 2a66fc6cae8ef09e780cd795bf0b1d7f8844f4ec Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 14 Dec 2022 18:37:37 +0000 Subject: LibJS: Add make_handle({Nonnull,}GCPtr) overloads --- Userland/Libraries/LibWeb/HTML/EventLoop/EventLoop.cpp | 2 +- Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibWeb/HTML') 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> EventLoop::documents_in_this_event_loop() cons Vector> 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) -- cgit v1.2.3