diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2023-04-06 16:12:33 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-04-07 22:41:01 +0200 |
commit | ad5cbdc51bd1673bedf544b4e6332896a7706171 (patch) | |
tree | cb3e0d647508e4607a858b2426ca97e2a8a2b02f /Userland/Libraries/LibWeb/XML | |
parent | e0002aa9939c71deb32dc0065cba9e129e389ad5 (diff) | |
download | serenity-ad5cbdc51bd1673bedf544b4e6332896a7706171.zip |
LibWeb: Port {Mouse,UI,Wheel,}Event to new String
This ports MouseEvent, UIEvent, WheelEvent, and Event to new String.
They all had a dependency to T::create() in
WebDriverConnection::fire_an_event() and therefore had to be ported in
the same commit.
Diffstat (limited to 'Userland/Libraries/LibWeb/XML')
-rw-r--r-- | Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp b/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp index 20113eba53..bf75430d7c 100644 --- a/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp +++ b/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp @@ -189,7 +189,7 @@ void XMLDocumentBuilder::document_end() document->load_timing_info().dom_content_loaded_event_start_time = HighResolutionTime::unsafe_shared_current_time(); // Fire an event named DOMContentLoaded at the Document object, with its bubbles attribute initialized to true. - auto content_loaded_event = DOM::Event::create(document->realm(), HTML::EventNames::DOMContentLoaded.to_deprecated_fly_string()).release_value_but_fixme_should_propagate_errors(); + auto content_loaded_event = DOM::Event::create(document->realm(), HTML::EventNames::DOMContentLoaded).release_value_but_fixme_should_propagate_errors(); content_loaded_event->set_bubbles(true); document->dispatch_event(content_loaded_event); @@ -229,7 +229,7 @@ void XMLDocumentBuilder::document_end() // Fire an event named load at window, with legacy target override flag set. // FIXME: The legacy target override flag is currently set by a virtual override of dispatch_event() // We should reorganize this so that the flag appears explicitly here instead. - window->dispatch_event(DOM::Event::create(document->realm(), HTML::EventNames::load.to_deprecated_fly_string()).release_value_but_fixme_should_propagate_errors()); + window->dispatch_event(DOM::Event::create(document->realm(), HTML::EventNames::load).release_value_but_fixme_should_propagate_errors()); // FIXME: Invoke WebDriver BiDi load complete with the Document's browsing context, and a new WebDriver BiDi navigation status whose id is the Document object's navigation id, status is "complete", and url is the Document object's URL. |