summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2023-04-06 07:25:18 +0200
committerLinus Groh <mail@linusgroh.de>2023-04-06 23:49:08 +0200
commit4d87072201efc4ef9086588255fbb1bb993872ab (patch)
treeeacc0403ddd251ada971e7809d0b530239feb7b3 /Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp
parentd6cf9f53297a8fe2e8455b0502cd458cd42ba12d (diff)
downloadserenity-4d87072201efc4ef9086588255fbb1bb993872ab.zip
LibWeb: Port {HTML,UIEvents,XHR}::EventNames to new String
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp
index 58a17ab15f..0ff92b7848 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp
@@ -403,11 +403,11 @@ void HTMLLinkElement::process_stylesheet_resource(bool success, Fetch::Infrastru
}
// 2. Fire an event named load at el.
- dispatch_event(*DOM::Event::create(realm(), HTML::EventNames::load).release_value_but_fixme_should_propagate_errors());
+ dispatch_event(*DOM::Event::create(realm(), HTML::EventNames::load.to_deprecated_fly_string()).release_value_but_fixme_should_propagate_errors());
}
// 5. Otherwise, fire an event named error at el.
else {
- dispatch_event(*DOM::Event::create(realm(), HTML::EventNames::error).release_value_but_fixme_should_propagate_errors());
+ dispatch_event(*DOM::Event::create(realm(), HTML::EventNames::error.to_deprecated_fly_string()).release_value_but_fixme_should_propagate_errors());
}
// FIXME: 6. If el contributes a script-blocking style sheet, then: