diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-04 18:02:33 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-06 08:54:33 +0100 |
commit | 6e19ab2bbce0b113b628e6f8e9b5c0640053933e (patch) | |
tree | 372d21b2f5dcff112f5d0089559c6af5798680d4 /Userland/Libraries/LibWeb/DOM/EventTarget.cpp | |
parent | f74251606d74b504a1379ebb893fdb5529054ea5 (diff) | |
download | serenity-6e19ab2bbce0b113b628e6f8e9b5c0640053933e.zip |
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null
state), and while it's going to use UTF-8, the name UTF8String is a
mouthful - so let's free up the String name by renaming the existing
class.
Making the old one have an annoying name will hopefully also help with
quick adoption :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/EventTarget.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/EventTarget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/EventTarget.cpp b/Userland/Libraries/LibWeb/DOM/EventTarget.cpp index 5839f18e69..329ffe6a38 100644 --- a/Userland/Libraries/LibWeb/DOM/EventTarget.cpp +++ b/Userland/Libraries/LibWeb/DOM/EventTarget.cpp @@ -332,7 +332,7 @@ WebIDL::CallbackType* EventTarget::get_current_value_of_event_handler(FlyString auto& event_handler = event_handler_iterator->value; // 3. If eventHandler's value is an internal raw uncompiled handler, then: - if (event_handler->value.has<String>()) { + if (event_handler->value.has<DeprecatedString>()) { // 1. If eventTarget is an element, then let element be eventTarget, and document be element's node document. // Otherwise, eventTarget is a Window object, let element be null, and document be eventTarget's associated Document. JS::GCPtr<Element> element; @@ -355,7 +355,7 @@ WebIDL::CallbackType* EventTarget::get_current_value_of_event_handler(FlyString return nullptr; // 3. Let body be the uncompiled script body in eventHandler's value. - auto& body = event_handler->value.get<String>(); + auto& body = event_handler->value.get<DeprecatedString>(); // FIXME: 4. Let location be the location where the script body originated, as given by eventHandler's value. @@ -680,7 +680,7 @@ JS::ThrowCompletionOr<void> EventTarget::process_event_handler_for_event(FlyStri } // https://html.spec.whatwg.org/multipage/webappapis.html#event-handler-attributes:concept-element-attributes-change-ext -void EventTarget::element_event_handler_attribute_changed(FlyString const& local_name, String const& value) +void EventTarget::element_event_handler_attribute_changed(FlyString const& local_name, DeprecatedString const& value) { // NOTE: Step 1 of this algorithm was handled in HTMLElement::parse_attribute. |