From 96af80acd1c643dcc9be6fd7c961f5c2487ecfa6 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Wed, 22 Nov 2023 12:55:21 +1300 Subject: [PATCH] LibWeb: Port Intrinsics from DeprecatedString --- .../BindingsGenerator/IDLGenerators.cpp | 14 +++++++------- .../GenerateWindowOrWorkerInterfaces.cpp | 18 +++++++++--------- .../Libraries/LibWeb/Animations/Animation.cpp | 2 +- .../LibWeb/Animations/AnimationEffect.cpp | 2 +- .../Animations/AnimationPlaybackEvent.cpp | 2 +- .../LibWeb/Animations/AnimationTimeline.cpp | 2 +- .../LibWeb/Animations/DocumentTimeline.cpp | 2 +- .../LibWeb/Animations/KeyframeEffect.cpp | 2 +- .../LibWeb/Bindings/AudioConstructor.cpp | 2 +- .../LibWeb/Bindings/ImageConstructor.cpp | 2 +- .../Libraries/LibWeb/Bindings/Intrinsics.h | 19 ++++++++++--------- .../LibWeb/Bindings/OptionConstructor.cpp | 2 +- .../Libraries/LibWeb/CSS/CSSConditionRule.cpp | 2 +- .../Libraries/LibWeb/CSS/CSSFontFaceRule.cpp | 2 +- .../Libraries/LibWeb/CSS/CSSGroupingRule.cpp | 2 +- .../Libraries/LibWeb/CSS/CSSImportRule.cpp | 2 +- .../Libraries/LibWeb/CSS/CSSKeyframeRule.cpp | 2 +- .../Libraries/LibWeb/CSS/CSSKeyframesRule.cpp | 2 +- .../Libraries/LibWeb/CSS/CSSMediaRule.cpp | 2 +- .../Libraries/LibWeb/CSS/CSSNamespaceRule.cpp | 2 +- Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp | 2 +- .../LibWeb/CSS/CSSStyleDeclaration.cpp | 2 +- .../Libraries/LibWeb/CSS/CSSStyleRule.cpp | 2 +- .../Libraries/LibWeb/CSS/CSSStyleSheet.cpp | 2 +- .../Libraries/LibWeb/CSS/CSSSupportsRule.cpp | 2 +- Userland/Libraries/LibWeb/CSS/MediaList.cpp | 2 +- .../Libraries/LibWeb/CSS/MediaQueryList.cpp | 2 +- .../LibWeb/CSS/MediaQueryListEvent.cpp | 2 +- Userland/Libraries/LibWeb/CSS/Screen.cpp | 2 +- .../Libraries/LibWeb/CSS/StyleSheetList.cpp | 2 +- .../Libraries/LibWeb/CSS/VisualViewport.cpp | 2 +- .../Libraries/LibWeb/Clipboard/Clipboard.cpp | 2 +- Userland/Libraries/LibWeb/Crypto/Crypto.cpp | 2 +- .../Libraries/LibWeb/Crypto/SubtleCrypto.cpp | 2 +- .../Libraries/LibWeb/DOM/AbortController.cpp | 2 +- Userland/Libraries/LibWeb/DOM/AbortSignal.cpp | 2 +- .../Libraries/LibWeb/DOM/AbstractRange.cpp | 2 +- Userland/Libraries/LibWeb/DOM/Attr.cpp | 2 +- .../Libraries/LibWeb/DOM/CDATASection.cpp | 2 +- .../Libraries/LibWeb/DOM/CharacterData.cpp | 2 +- Userland/Libraries/LibWeb/DOM/Comment.cpp | 2 +- Userland/Libraries/LibWeb/DOM/CustomEvent.cpp | 2 +- .../LibWeb/DOM/DOMImplementation.cpp | 2 +- .../Libraries/LibWeb/DOM/DOMTokenList.cpp | 2 +- Userland/Libraries/LibWeb/DOM/Document.cpp | 2 +- .../Libraries/LibWeb/DOM/DocumentFragment.cpp | 2 +- .../Libraries/LibWeb/DOM/DocumentType.cpp | 2 +- Userland/Libraries/LibWeb/DOM/Element.cpp | 2 +- Userland/Libraries/LibWeb/DOM/Event.cpp | 2 +- Userland/Libraries/LibWeb/DOM/EventTarget.cpp | 2 +- .../Libraries/LibWeb/DOM/HTMLCollection.cpp | 2 +- .../LibWeb/DOM/HTMLFormControlsCollection.cpp | 2 +- .../Libraries/LibWeb/DOM/MutationObserver.cpp | 2 +- .../Libraries/LibWeb/DOM/MutationRecord.cpp | 2 +- .../Libraries/LibWeb/DOM/NamedNodeMap.cpp | 2 +- .../Libraries/LibWeb/DOM/NodeIterator.cpp | 2 +- Userland/Libraries/LibWeb/DOM/NodeList.cpp | 2 +- .../LibWeb/DOM/ProcessingInstruction.cpp | 2 +- .../Libraries/LibWeb/DOM/RadioNodeList.cpp | 2 +- Userland/Libraries/LibWeb/DOM/Range.cpp | 2 +- Userland/Libraries/LibWeb/DOM/ShadowRoot.cpp | 2 +- Userland/Libraries/LibWeb/DOM/StaticRange.cpp | 2 +- Userland/Libraries/LibWeb/DOM/Text.cpp | 2 +- Userland/Libraries/LibWeb/DOM/TreeWalker.cpp | 2 +- Userland/Libraries/LibWeb/DOM/XMLDocument.cpp | 2 +- .../LibWeb/DOMParsing/XMLSerializer.cpp | 2 +- .../Libraries/LibWeb/Encoding/TextDecoder.cpp | 2 +- .../Libraries/LibWeb/Encoding/TextEncoder.cpp | 2 +- Userland/Libraries/LibWeb/Fetch/Headers.cpp | 2 +- .../LibWeb/Fetch/HeadersIterator.cpp | 4 ++-- Userland/Libraries/LibWeb/Fetch/Request.cpp | 2 +- Userland/Libraries/LibWeb/Fetch/Response.cpp | 2 +- Userland/Libraries/LibWeb/FileAPI/Blob.cpp | 2 +- Userland/Libraries/LibWeb/FileAPI/File.cpp | 2 +- .../Libraries/LibWeb/FileAPI/FileList.cpp | 2 +- .../Libraries/LibWeb/FileAPI/FileReader.cpp | 2 +- .../Libraries/LibWeb/Geometry/DOMMatrix.cpp | 2 +- .../LibWeb/Geometry/DOMMatrixReadOnly.cpp | 2 +- .../Libraries/LibWeb/Geometry/DOMPoint.cpp | 2 +- .../LibWeb/Geometry/DOMPointReadOnly.cpp | 2 +- .../Libraries/LibWeb/Geometry/DOMQuad.cpp | 2 +- .../Libraries/LibWeb/Geometry/DOMRect.cpp | 2 +- .../Libraries/LibWeb/Geometry/DOMRectList.cpp | 2 +- .../LibWeb/Geometry/DOMRectReadOnly.cpp | 2 +- Userland/Libraries/LibWeb/HTML/AudioTrack.cpp | 2 +- .../Libraries/LibWeb/HTML/AudioTrackList.cpp | 2 +- .../Libraries/LibWeb/HTML/CanvasGradient.cpp | 2 +- .../Libraries/LibWeb/HTML/CanvasPattern.cpp | 2 +- .../LibWeb/HTML/CanvasRenderingContext2D.cpp | 2 +- Userland/Libraries/LibWeb/HTML/CloseEvent.cpp | 2 +- .../CustomElements/CustomElementRegistry.cpp | 2 +- Userland/Libraries/LibWeb/HTML/DOMParser.cpp | 2 +- .../Libraries/LibWeb/HTML/DOMStringMap.cpp | 2 +- Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp | 2 +- .../Libraries/LibWeb/HTML/FormDataEvent.cpp | 2 +- .../LibWeb/HTML/HTMLAnchorElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLAreaElement.cpp | 2 +- .../LibWeb/HTML/HTMLAudioElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLBRElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLBaseElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLBodyElement.cpp | 2 +- .../LibWeb/HTML/HTMLButtonElement.cpp | 2 +- .../LibWeb/HTML/HTMLCanvasElement.cpp | 2 +- .../LibWeb/HTML/HTMLDListElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLDataElement.cpp | 2 +- .../LibWeb/HTML/HTMLDataListElement.cpp | 2 +- .../LibWeb/HTML/HTMLDetailsElement.cpp | 2 +- .../LibWeb/HTML/HTMLDialogElement.cpp | 2 +- .../LibWeb/HTML/HTMLDirectoryElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLDivElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLElement.cpp | 2 +- .../LibWeb/HTML/HTMLEmbedElement.cpp | 2 +- .../LibWeb/HTML/HTMLFieldSetElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLFontElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLFormElement.cpp | 2 +- .../LibWeb/HTML/HTMLFrameElement.cpp | 2 +- .../LibWeb/HTML/HTMLFrameSetElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLHRElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLHeadElement.cpp | 2 +- .../LibWeb/HTML/HTMLHeadingElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLHtmlElement.cpp | 2 +- .../LibWeb/HTML/HTMLIFrameElement.cpp | 2 +- .../LibWeb/HTML/HTMLImageElement.cpp | 2 +- .../LibWeb/HTML/HTMLInputElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLLIElement.cpp | 2 +- .../LibWeb/HTML/HTMLLabelElement.cpp | 2 +- .../LibWeb/HTML/HTMLLegendElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLLinkElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLMapElement.cpp | 2 +- .../LibWeb/HTML/HTMLMarqueeElement.cpp | 2 +- .../LibWeb/HTML/HTMLMediaElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLMenuElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLMetaElement.cpp | 2 +- .../LibWeb/HTML/HTMLMeterElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLModElement.cpp | 2 +- .../LibWeb/HTML/HTMLOListElement.cpp | 2 +- .../LibWeb/HTML/HTMLObjectElement.cpp | 2 +- .../LibWeb/HTML/HTMLOptGroupElement.cpp | 2 +- .../LibWeb/HTML/HTMLOptionElement.cpp | 2 +- .../LibWeb/HTML/HTMLOptionsCollection.cpp | 2 +- .../LibWeb/HTML/HTMLOutputElement.cpp | 2 +- .../LibWeb/HTML/HTMLParagraphElement.cpp | 2 +- .../LibWeb/HTML/HTMLParamElement.cpp | 2 +- .../LibWeb/HTML/HTMLPictureElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLPreElement.cpp | 2 +- .../LibWeb/HTML/HTMLProgressElement.cpp | 2 +- .../LibWeb/HTML/HTMLQuoteElement.cpp | 2 +- .../LibWeb/HTML/HTMLScriptElement.cpp | 2 +- .../LibWeb/HTML/HTMLSelectElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLSlotElement.cpp | 2 +- .../LibWeb/HTML/HTMLSourceElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLSpanElement.cpp | 2 +- .../LibWeb/HTML/HTMLStyleElement.cpp | 2 +- .../LibWeb/HTML/HTMLTableCaptionElement.cpp | 2 +- .../LibWeb/HTML/HTMLTableCellElement.cpp | 2 +- .../LibWeb/HTML/HTMLTableColElement.cpp | 2 +- .../LibWeb/HTML/HTMLTableElement.cpp | 2 +- .../LibWeb/HTML/HTMLTableRowElement.cpp | 2 +- .../LibWeb/HTML/HTMLTableSectionElement.cpp | 2 +- .../LibWeb/HTML/HTMLTemplateElement.cpp | 2 +- .../LibWeb/HTML/HTMLTextAreaElement.cpp | 2 +- .../Libraries/LibWeb/HTML/HTMLTimeElement.cpp | 2 +- .../LibWeb/HTML/HTMLTitleElement.cpp | 2 +- .../LibWeb/HTML/HTMLTrackElement.cpp | 2 +- .../LibWeb/HTML/HTMLUListElement.cpp | 2 +- .../LibWeb/HTML/HTMLUnknownElement.cpp | 2 +- .../LibWeb/HTML/HTMLVideoElement.cpp | 2 +- Userland/Libraries/LibWeb/HTML/History.cpp | 2 +- Userland/Libraries/LibWeb/HTML/ImageData.cpp | 2 +- Userland/Libraries/LibWeb/HTML/Location.cpp | 2 +- Userland/Libraries/LibWeb/HTML/MediaError.cpp | 2 +- .../Libraries/LibWeb/HTML/MessageChannel.cpp | 2 +- .../Libraries/LibWeb/HTML/MessageEvent.cpp | 2 +- .../Libraries/LibWeb/HTML/MessagePort.cpp | 2 +- Userland/Libraries/LibWeb/HTML/MimeType.cpp | 2 +- .../Libraries/LibWeb/HTML/MimeTypeArray.cpp | 2 +- .../Libraries/LibWeb/HTML/NavigateEvent.cpp | 2 +- Userland/Libraries/LibWeb/HTML/Navigation.cpp | 2 +- .../NavigationCurrentEntryChangeEvent.cpp | 2 +- .../LibWeb/HTML/NavigationDestination.cpp | 2 +- .../LibWeb/HTML/NavigationHistoryEntry.cpp | 2 +- .../LibWeb/HTML/NavigationTransition.cpp | 2 +- Userland/Libraries/LibWeb/HTML/Navigator.cpp | 2 +- .../LibWeb/HTML/PageTransitionEvent.cpp | 2 +- Userland/Libraries/LibWeb/HTML/Path2D.cpp | 2 +- Userland/Libraries/LibWeb/HTML/Plugin.cpp | 2 +- .../Libraries/LibWeb/HTML/PluginArray.cpp | 2 +- .../LibWeb/HTML/PromiseRejectionEvent.cpp | 2 +- Userland/Libraries/LibWeb/HTML/Storage.cpp | 2 +- .../Libraries/LibWeb/HTML/SubmitEvent.cpp | 2 +- .../Libraries/LibWeb/HTML/TextMetrics.cpp | 2 +- Userland/Libraries/LibWeb/HTML/TimeRanges.cpp | 2 +- .../Libraries/LibWeb/HTML/ToggleEvent.cpp | 2 +- Userland/Libraries/LibWeb/HTML/TrackEvent.cpp | 2 +- Userland/Libraries/LibWeb/HTML/VideoTrack.cpp | 2 +- .../Libraries/LibWeb/HTML/VideoTrackList.cpp | 2 +- Userland/Libraries/LibWeb/HTML/Window.cpp | 2 +- Userland/Libraries/LibWeb/HTML/Worker.cpp | 2 +- .../LibWeb/HTML/WorkerGlobalScope.cpp | 2 +- .../Libraries/LibWeb/HTML/WorkerNavigator.cpp | 2 +- .../LibWeb/HighResolutionTime/Performance.cpp | 2 +- .../Libraries/LibWeb/Internals/Inspector.cpp | 2 +- .../Libraries/LibWeb/Internals/Internals.cpp | 2 +- .../IntersectionObserver.cpp | 2 +- .../IntersectionObserverEntry.cpp | 2 +- .../Libraries/LibWeb/MathML/MathMLElement.cpp | 2 +- .../NavigationTiming/PerformanceTiming.cpp | 2 +- .../PerformanceTimeline/PerformanceEntry.cpp | 2 +- .../PerformanceObserver.cpp | 2 +- .../PerformanceObserverEntryList.cpp | 2 +- .../RequestIdleCallback/IdleDeadline.cpp | 2 +- .../LibWeb/ResizeObserver/ResizeObserver.cpp | 2 +- .../LibWeb/SVG/SVGAnimatedLength.cpp | 2 +- .../LibWeb/SVG/SVGAnimatedNumber.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGCircleElement.cpp | 2 +- .../LibWeb/SVG/SVGClipPathElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGDefsElement.cpp | 2 +- Userland/Libraries/LibWeb/SVG/SVGElement.cpp | 2 +- .../LibWeb/SVG/SVGEllipseElement.cpp | 2 +- .../LibWeb/SVG/SVGForeignObjectElement.cpp | 2 +- .../LibWeb/SVG/SVGGeometryElement.cpp | 2 +- .../LibWeb/SVG/SVGGradientElement.cpp | 2 +- .../LibWeb/SVG/SVGGraphicsElement.cpp | 2 +- Userland/Libraries/LibWeb/SVG/SVGLength.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGLineElement.cpp | 2 +- .../LibWeb/SVG/SVGLinearGradientElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGMaskElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGPathElement.cpp | 2 +- .../LibWeb/SVG/SVGPolygonElement.cpp | 2 +- .../LibWeb/SVG/SVGPolylineElement.cpp | 2 +- .../LibWeb/SVG/SVGRadialGradientElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGRectElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGSVGElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGScriptElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGStopElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGStyleElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGSymbolElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGTSpanElement.cpp | 2 +- .../LibWeb/SVG/SVGTextContentElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGTextElement.cpp | 2 +- .../LibWeb/SVG/SVGTextPositioningElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGTitleElement.cpp | 2 +- .../Libraries/LibWeb/SVG/SVGUseElement.cpp | 2 +- .../Libraries/LibWeb/Selection/Selection.cpp | 2 +- .../Streams/ByteLengthQueuingStrategy.cpp | 2 +- .../LibWeb/Streams/CountQueuingStrategy.cpp | 2 +- .../LibWeb/Streams/ReadableStream.cpp | 2 +- .../Streams/ReadableStreamBYOBReader.cpp | 2 +- .../ReadableStreamDefaultController.cpp | 2 +- .../Streams/ReadableStreamDefaultReader.cpp | 2 +- .../LibWeb/Streams/TransformStream.cpp | 2 +- .../TransformStreamDefaultController.cpp | 2 +- .../LibWeb/Streams/WritableStream.cpp | 2 +- .../Streams/WritableStreamDefaultWriter.cpp | 2 +- .../Libraries/LibWeb/UIEvents/FocusEvent.cpp | 2 +- .../LibWeb/UIEvents/KeyboardEvent.cpp | 2 +- .../Libraries/LibWeb/UIEvents/MouseEvent.cpp | 2 +- .../Libraries/LibWeb/UIEvents/UIEvent.cpp | 2 +- .../Libraries/LibWeb/UIEvents/WheelEvent.cpp | 2 +- Userland/Libraries/LibWeb/URL/URL.cpp | 2 +- .../Libraries/LibWeb/URL/URLSearchParams.cpp | 2 +- .../LibWeb/URL/URLSearchParamsIterator.cpp | 4 ++-- .../LibWeb/UserTiming/PerformanceMark.cpp | 2 +- .../LibWeb/UserTiming/PerformanceMeasure.cpp | 2 +- .../Libraries/LibWeb/WebAssembly/Instance.cpp | 2 +- .../Libraries/LibWeb/WebAssembly/Memory.cpp | 2 +- .../Libraries/LibWeb/WebAssembly/Module.cpp | 2 +- .../Libraries/LibWeb/WebAssembly/Table.cpp | 2 +- .../LibWeb/WebAudio/AudioContext.cpp | 2 +- .../LibWeb/WebAudio/BaseAudioContext.cpp | 2 +- .../LibWeb/WebGL/WebGLContextEvent.cpp | 2 +- .../LibWeb/WebGL/WebGLRenderingContext.cpp | 2 +- .../Libraries/LibWeb/WebIDL/DOMException.cpp | 2 +- .../Libraries/LibWeb/WebSockets/WebSocket.cpp | 2 +- Userland/Libraries/LibWeb/XHR/FormData.cpp | 2 +- .../Libraries/LibWeb/XHR/FormDataIterator.cpp | 4 ++-- .../Libraries/LibWeb/XHR/ProgressEvent.cpp | 2 +- .../Libraries/LibWeb/XHR/XMLHttpRequest.cpp | 2 +- .../LibWeb/XHR/XMLHttpRequestUpload.cpp | 2 +- 279 files changed, 305 insertions(+), 304 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp index cd09ab3716..721c78216d 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp @@ -2597,7 +2597,7 @@ void @named_properties_class@::initialize(JS::Realm& realm) } else { generator.append(R"~~~( - set_prototype(&ensure_web_prototype<@prototype_base_class@>(realm, "@parent_name@")); + set_prototype(&ensure_web_prototype<@prototype_base_class@>(realm, "@parent_name@"_fly_string)); )~~~"); } @@ -2743,12 +2743,12 @@ void @class_name@::initialize(JS::Realm& realm) )~~~"); } else if (is_global_interface && interface.supports_named_properties()) { generator.append(R"~~~( - set_prototype(&ensure_web_prototype<@prototype_name@>(realm, "@name@")); + set_prototype(&ensure_web_prototype<@prototype_name@>(realm, "@name@"_fly_string)); )~~~"); } else { generator.append(R"~~~( - set_prototype(&ensure_web_prototype<@prototype_base_class@>(realm, "@parent_name@")); + set_prototype(&ensure_web_prototype<@prototype_base_class@>(realm, "@parent_name@"_fly_string)); )~~~"); } @@ -3877,7 +3877,7 @@ JS::ThrowCompletionOr> @constructor_class@::constru // 2. Set prototype to the interface prototype object for interface in targetRealm. VERIFY(target_realm); - prototype = &Bindings::ensure_web_prototype<@prototype_class@>(*target_realm, "@name@"sv); + prototype = &Bindings::ensure_web_prototype<@prototype_class@>(*target_realm, "@name@"_fly_string); } // 7. Set instance.[[Prototype]] to prototype. @@ -3903,7 +3903,7 @@ JS::ThrowCompletionOr> @constructor_class@::constru // 2. Set prototype to the interface prototype object of realm whose interface is the same as the interface of the active function object. VERIFY(function_realm); - prototype = &Bindings::ensure_web_prototype<@prototype_class@>(*function_realm, "@name@"sv); + prototype = &Bindings::ensure_web_prototype<@prototype_class@>(*function_realm, "@name@"_fly_string); } VERIFY(prototype.is_object()); @@ -3937,7 +3937,7 @@ void @constructor_class@::initialize(JS::Realm& realm) [[maybe_unused]] u8 default_attributes = JS::Attribute::Enumerable; Base::initialize(realm); - define_direct_property(vm.names.prototype, &ensure_web_prototype<@prototype_class@>(realm, "@namespaced_name@"), 0); + define_direct_property(vm.names.prototype, &ensure_web_prototype<@prototype_class@>(realm, "@namespaced_name@"_fly_string), 0); define_direct_property(vm.names.length, JS::Value(@constructor.length@), JS::Attribute::Configurable); )~~~"); @@ -4179,7 +4179,7 @@ void @prototype_class@::initialize(JS::Realm& realm) generator.set("namespaced_name", interface.namespaced_name); generator.append(R"~~~( define_direct_property(vm().well_known_symbol_to_string_tag(), JS::PrimitiveString::create(vm(), "@namespaced_name@"_string), JS::Attribute::Configurable); - set_prototype(&ensure_web_prototype<@prototype_class@>(realm, "@named_properties_class@")); + set_prototype(&ensure_web_prototype<@prototype_class@>(realm, "@named_properties_class@"_fly_string)); )~~~"); } generator.append(R"~~~( diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWindowOrWorkerInterfaces.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWindowOrWorkerInterfaces.cpp index 087307a717..9e4b826997 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWindowOrWorkerInterfaces.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/GenerateWindowOrWorkerInterfaces.cpp @@ -168,7 +168,7 @@ template<> void Intrinsics::create_web_namespace<@namespace_class@>(JS::Realm& realm) { auto namespace_object = heap().allocate<@namespace_class@>(realm, realm); - m_namespaces.set("@interface_name@"sv, namespace_object); + m_namespaces.set("@interface_name@"_fly_string, namespace_object); [[maybe_unused]] static constexpr u8 attr = JS::Attribute::Writable | JS::Attribute::Configurable;)~~~"); @@ -180,7 +180,7 @@ void Intrinsics::create_web_namespace<@namespace_class@>(JS::Realm& realm) gen.set("owned_prototype_class", interface.prototype_class); gen.append(R"~~~( - namespace_object->define_intrinsic_accessor("@owned_interface_name@", attr, [](auto& realm) -> JS::Value { return &Bindings::ensure_web_constructor<@owned_prototype_class@>(realm, "@interface_name@.@owned_interface_name@"sv); });)~~~"); + namespace_object->define_intrinsic_accessor("@owned_interface_name@", attr, [](auto& realm) -> JS::Value { return &Bindings::ensure_web_constructor<@owned_prototype_class@>(realm, "@interface_name@.@owned_interface_name@"_fly_string); });)~~~"); } gen.append(R"~~~( @@ -204,16 +204,16 @@ void Intrinsics::create_web_prototype_and_constructor<@prototype_class@>(JS::Rea gen.set("named_properties_class", named_properties_class); gen.append(R"~~~( auto named_properties_object = heap().allocate<@named_properties_class@>(realm, realm); - m_prototypes.set("@named_properties_class@"sv, named_properties_object); + m_prototypes.set("@named_properties_class@"_fly_string, named_properties_object); )~~~"); } gen.append(R"~~~( auto prototype = heap().allocate<@prototype_class@>(realm, realm); - m_prototypes.set("@interface_name@"sv, prototype); + m_prototypes.set("@interface_name@"_fly_string, prototype); auto constructor = heap().allocate<@constructor_class@>(realm, realm); - m_constructors.set("@interface_name@"sv, constructor); + m_constructors.set("@interface_name@"_fly_string, constructor); prototype->define_direct_property(vm.names.constructor, constructor.ptr(), JS::Attribute::Writable | JS::Attribute::Configurable); constructor->define_direct_property(vm.names.name, JS::PrimitiveString::create(vm, "@interface_name@"_string), JS::Attribute::Configurable); @@ -224,7 +224,7 @@ void Intrinsics::create_web_prototype_and_constructor<@prototype_class@>(JS::Rea gen.set("legacy_constructor_class", legacy_constructor->constructor_class); gen.append(R"~~~( auto legacy_constructor = heap().allocate<@legacy_constructor_class@>(realm, realm); - m_constructors.set("@legacy_interface_name@"sv, legacy_constructor); + m_constructors.set("@legacy_interface_name@"_fly_string, legacy_constructor); legacy_constructor->define_direct_property(vm.names.name, JS::PrimitiveString::create(vm, "@legacy_interface_name@"_string), JS::Attribute::Configurable);)~~~"); } @@ -334,12 +334,12 @@ void add_@global_object_snake_name@_exposed_interfaces(JS::Object& global) gen.set("prototype_class", prototype_class); gen.append(R"~~~( - global.define_intrinsic_accessor("@interface_name@", attr, [](auto& realm) -> JS::Value { return &ensure_web_constructor<@prototype_class@>(realm, "@interface_name@"sv); });)~~~"); + global.define_intrinsic_accessor("@interface_name@", attr, [](auto& realm) -> JS::Value { return &ensure_web_constructor<@prototype_class@>(realm, "@interface_name@"_fly_string); });)~~~"); if (legacy_constructor.has_value()) { gen.set("legacy_interface_name", legacy_constructor->name); gen.append(R"~~~( - global.define_intrinsic_accessor("@legacy_interface_name@", attr, [](auto& realm) -> JS::Value { return &ensure_web_constructor<@prototype_class@>(realm, "@legacy_interface_name@"sv); });)~~~"); + global.define_intrinsic_accessor("@legacy_interface_name@", attr, [](auto& realm) -> JS::Value { return &ensure_web_constructor<@prototype_class@>(realm, "@legacy_interface_name@"_fly_string); });)~~~"); } }; @@ -348,7 +348,7 @@ void add_@global_object_snake_name@_exposed_interfaces(JS::Object& global) gen.set("namespace_class", namespace_class); gen.append(R"~~~( - global.define_intrinsic_accessor("@interface_name@", attr, [](auto& realm) -> JS::Value { return &ensure_web_namespace<@namespace_class@>(realm, "@interface_name@"sv); });)~~~"); + global.define_intrinsic_accessor("@interface_name@", attr, [](auto& realm) -> JS::Value { return &ensure_web_namespace<@namespace_class@>(realm, "@interface_name@"_fly_string); });)~~~"); }; for (auto& interface : exposed_interfaces) { diff --git a/Userland/Libraries/LibWeb/Animations/Animation.cpp b/Userland/Libraries/LibWeb/Animations/Animation.cpp index 76b179d4ee..a2e8d542c3 100644 --- a/Userland/Libraries/LibWeb/Animations/Animation.cpp +++ b/Userland/Libraries/LibWeb/Animations/Animation.cpp @@ -622,7 +622,7 @@ Animation::Animation(JS::Realm& realm) void Animation::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Animation")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Animation"_fly_string)); } void Animation::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Animations/AnimationEffect.cpp b/Userland/Libraries/LibWeb/Animations/AnimationEffect.cpp index 2c9d67ee87..3c965debe3 100644 --- a/Userland/Libraries/LibWeb/Animations/AnimationEffect.cpp +++ b/Userland/Libraries/LibWeb/Animations/AnimationEffect.cpp @@ -497,7 +497,7 @@ AnimationEffect::AnimationEffect(JS::Realm& realm) void AnimationEffect::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "AnimationEffect")); + set_prototype(&Bindings::ensure_web_prototype(realm, "AnimationEffect"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp b/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp index 938f3018d2..055a06a371 100644 --- a/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp +++ b/Userland/Libraries/LibWeb/Animations/AnimationPlaybackEvent.cpp @@ -32,7 +32,7 @@ AnimationPlaybackEvent::AnimationPlaybackEvent(JS::Realm& realm, FlyString const void AnimationPlaybackEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "AnimationPlaybackEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "AnimationPlaybackEvent"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/Animations/AnimationTimeline.cpp b/Userland/Libraries/LibWeb/Animations/AnimationTimeline.cpp index 6626891f8b..4b6166b516 100644 --- a/Userland/Libraries/LibWeb/Animations/AnimationTimeline.cpp +++ b/Userland/Libraries/LibWeb/Animations/AnimationTimeline.cpp @@ -60,7 +60,7 @@ AnimationTimeline::~AnimationTimeline() void AnimationTimeline::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "AnimationTimeline")); + set_prototype(&Bindings::ensure_web_prototype(realm, "AnimationTimeline"_fly_string)); } void AnimationTimeline::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Animations/DocumentTimeline.cpp b/Userland/Libraries/LibWeb/Animations/DocumentTimeline.cpp index 6cd27f501d..4f8c22080a 100644 --- a/Userland/Libraries/LibWeb/Animations/DocumentTimeline.cpp +++ b/Userland/Libraries/LibWeb/Animations/DocumentTimeline.cpp @@ -76,7 +76,7 @@ DocumentTimeline::DocumentTimeline(JS::Realm& realm, DOM::Document& document, Hi void DocumentTimeline::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DocumentTimeline")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DocumentTimeline"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/Animations/KeyframeEffect.cpp b/Userland/Libraries/LibWeb/Animations/KeyframeEffect.cpp index 216c4bbe8b..86f690ee6e 100644 --- a/Userland/Libraries/LibWeb/Animations/KeyframeEffect.cpp +++ b/Userland/Libraries/LibWeb/Animations/KeyframeEffect.cpp @@ -176,7 +176,7 @@ KeyframeEffect::KeyframeEffect(JS::Realm& realm) void KeyframeEffect::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "KeyframeEffect")); + set_prototype(&Bindings::ensure_web_prototype(realm, "KeyframeEffect"_fly_string)); } void KeyframeEffect::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp index bdf4c1d047..7ecde4ec50 100644 --- a/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp +++ b/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp @@ -24,7 +24,7 @@ void AudioConstructor::initialize(JS::Realm& realm) auto& vm = this->vm(); Base::initialize(realm); - define_direct_property(vm.names.prototype, &ensure_web_prototype(realm, "HTMLAudioElement"), 0); + define_direct_property(vm.names.prototype, &ensure_web_prototype(realm, "HTMLAudioElement"_fly_string), 0); define_direct_property(vm.names.length, JS::Value(0), JS::Attribute::Configurable); } diff --git a/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp index 06ebc87ddb..7250798928 100644 --- a/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp +++ b/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp @@ -24,7 +24,7 @@ void ImageConstructor::initialize(JS::Realm& realm) auto& vm = this->vm(); Base::initialize(realm); - define_direct_property(vm.names.prototype, &ensure_web_prototype(realm, "HTMLImageElement"), 0); + define_direct_property(vm.names.prototype, &ensure_web_prototype(realm, "HTMLImageElement"_fly_string), 0); define_direct_property(vm.names.length, JS::Value(0), JS::Attribute::Configurable); } diff --git a/Userland/Libraries/LibWeb/Bindings/Intrinsics.h b/Userland/Libraries/LibWeb/Bindings/Intrinsics.h index 34fa4a3016..53a9eea391 100644 --- a/Userland/Libraries/LibWeb/Bindings/Intrinsics.h +++ b/Userland/Libraries/LibWeb/Bindings/Intrinsics.h @@ -6,6 +6,7 @@ #pragma once +#include #include #include #include @@ -27,7 +28,7 @@ public: } template - JS::Object& ensure_web_namespace(DeprecatedString const& namespace_name) + JS::Object& ensure_web_namespace(FlyString const& namespace_name) { if (auto it = m_namespaces.find(namespace_name); it != m_namespaces.end()) return *it->value; @@ -37,7 +38,7 @@ public: } template - JS::Object& ensure_web_prototype(DeprecatedString const& class_name) + JS::Object& ensure_web_prototype(FlyString const& class_name) { if (auto it = m_prototypes.find(class_name); it != m_prototypes.end()) return *it->value; @@ -47,7 +48,7 @@ public: } template - JS::NativeFunction& ensure_web_constructor(DeprecatedString const& class_name) + JS::NativeFunction& ensure_web_constructor(FlyString const& class_name) { if (auto it = m_constructors.find(class_name); it != m_constructors.end()) return *it->value; @@ -65,9 +66,9 @@ private: template void create_web_prototype_and_constructor(JS::Realm& realm); - HashMap> m_namespaces; - HashMap> m_prototypes; - HashMap> m_constructors; + HashMap> m_namespaces; + HashMap> m_prototypes; + HashMap> m_constructors; JS::NonnullGCPtr m_realm; }; @@ -77,19 +78,19 @@ private: } template -[[nodiscard]] JS::Object& ensure_web_namespace(JS::Realm& realm, DeprecatedString const& namespace_name) +[[nodiscard]] JS::Object& ensure_web_namespace(JS::Realm& realm, FlyString const& namespace_name) { return host_defined_intrinsics(realm).ensure_web_namespace(namespace_name); } template -[[nodiscard]] JS::Object& ensure_web_prototype(JS::Realm& realm, DeprecatedString const& class_name) +[[nodiscard]] JS::Object& ensure_web_prototype(JS::Realm& realm, FlyString const& class_name) { return host_defined_intrinsics(realm).ensure_web_prototype(class_name); } template -[[nodiscard]] JS::NativeFunction& ensure_web_constructor(JS::Realm& realm, DeprecatedString const& class_name) +[[nodiscard]] JS::NativeFunction& ensure_web_constructor(JS::Realm& realm, FlyString const& class_name) { return host_defined_intrinsics(realm).ensure_web_constructor(class_name); } diff --git a/Userland/Libraries/LibWeb/Bindings/OptionConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/OptionConstructor.cpp index be599b3d67..a638213b2e 100644 --- a/Userland/Libraries/LibWeb/Bindings/OptionConstructor.cpp +++ b/Userland/Libraries/LibWeb/Bindings/OptionConstructor.cpp @@ -27,7 +27,7 @@ void OptionConstructor::initialize(JS::Realm& realm) auto& vm = this->vm(); Base::initialize(realm); - define_direct_property(vm.names.prototype, &ensure_web_prototype(realm, "HTMLOptionElement"), 0); + define_direct_property(vm.names.prototype, &ensure_web_prototype(realm, "HTMLOptionElement"_fly_string), 0); define_direct_property(vm.names.length, JS::Value(0), JS::Attribute::Configurable); } diff --git a/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp index 5c641f4fcb..2a4f2576aa 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSConditionRule.cpp @@ -31,7 +31,7 @@ void CSSConditionRule::for_each_effective_keyframes_at_rule(Function(realm, "CSSConditionRule")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSConditionRule"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/CSS/CSSFontFaceRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSFontFaceRule.cpp index 5ccc044982..3b632ad97d 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSFontFaceRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSFontFaceRule.cpp @@ -28,7 +28,7 @@ CSSFontFaceRule::CSSFontFaceRule(JS::Realm& realm, FontFace&& font_face) void CSSFontFaceRule::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSFontFaceRule")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSFontFaceRule"_fly_string)); } CSSStyleDeclaration* CSSFontFaceRule::style() diff --git a/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.cpp index 4f6d4d5e7d..886b5d9156 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSGroupingRule.cpp @@ -25,7 +25,7 @@ CSSGroupingRule::CSSGroupingRule(JS::Realm& realm, CSSRuleList& rules) void CSSGroupingRule::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSGroupingRule")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSGroupingRule"_fly_string)); } void CSSGroupingRule::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp index d1960c1856..816567c681 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSImportRule.cpp @@ -45,7 +45,7 @@ CSSImportRule::CSSImportRule(AK::URL url, DOM::Document& document) void CSSImportRule::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSImportRule")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSImportRule"_fly_string)); } void CSSImportRule::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.cpp index 49ce322905..1c871c49d5 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.cpp @@ -27,7 +27,7 @@ void CSSKeyframeRule::visit_edges(Visitor& visitor) void CSSKeyframeRule::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSKeyframeRule")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSKeyframeRule"_fly_string)); } String CSSKeyframeRule::serialized() const diff --git a/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.cpp index 6e14ec1a3d..87d27963a8 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.cpp @@ -27,7 +27,7 @@ void CSSKeyframesRule::visit_edges(Visitor& visitor) void CSSKeyframesRule::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSKeyframesRule")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSKeyframesRule"_fly_string)); } String CSSKeyframesRule::serialized() const diff --git a/Userland/Libraries/LibWeb/CSS/CSSMediaRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSMediaRule.cpp index a033e819d3..b89baad937 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSMediaRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSMediaRule.cpp @@ -28,7 +28,7 @@ CSSMediaRule::CSSMediaRule(JS::Realm& realm, MediaList& media, CSSRuleList& rule void CSSMediaRule::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSMediaRule")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSMediaRule"_fly_string)); } void CSSMediaRule::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp index 1f7078fac1..aedb266894 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSNamespaceRule.cpp @@ -31,7 +31,7 @@ JS::NonnullGCPtr CSSNamespaceRule::create(JS::Realm& realm, Op void CSSNamespaceRule::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSNamespaceRule")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSNamespaceRule"_fly_string)); } // https://www.w3.org/TR/cssom/#serialize-a-css-rule diff --git a/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp b/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp index 601ed4865f..e2413c6a44 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSRuleList.cpp @@ -41,7 +41,7 @@ JS::NonnullGCPtr CSSRuleList::create_empty(JS::Realm& realm) void CSSRuleList::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSRuleList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSRuleList"_fly_string)); } void CSSRuleList::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp index 74e11fee9c..10b1c7f7c3 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.cpp @@ -28,7 +28,7 @@ CSSStyleDeclaration::CSSStyleDeclaration(JS::Realm& realm) void CSSStyleDeclaration::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSStyleDeclaration")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSStyleDeclaration"_fly_string)); } JS::NonnullGCPtr PropertyOwningCSSStyleDeclaration::create(JS::Realm& realm, Vector properties, HashMap custom_properties) diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp index ac9e7cbc4a..84aa73c475 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp @@ -29,7 +29,7 @@ CSSStyleRule::CSSStyleRule(JS::Realm& realm, Vector>&& s void CSSStyleRule::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSStyleRule")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSStyleRule"_fly_string)); } void CSSStyleRule::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp index 92dff7a129..0af9dc79e2 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSStyleSheet.cpp @@ -42,7 +42,7 @@ CSSStyleSheet::CSSStyleSheet(JS::Realm& realm, CSSRuleList& rules, MediaList& me void CSSStyleSheet::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSStyleSheet")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSStyleSheet"_fly_string)); } void CSSStyleSheet::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.cpp index f3f0227ab5..b53c234f6b 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSSupportsRule.cpp @@ -27,7 +27,7 @@ CSSSupportsRule::CSSSupportsRule(JS::Realm& realm, NonnullRefPtr&& sup void CSSSupportsRule::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CSSSupportsRule")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CSSSupportsRule"_fly_string)); } String CSSSupportsRule::condition_text() const diff --git a/Userland/Libraries/LibWeb/CSS/MediaList.cpp b/Userland/Libraries/LibWeb/CSS/MediaList.cpp index acb2e9bd7c..bd13c92d39 100644 --- a/Userland/Libraries/LibWeb/CSS/MediaList.cpp +++ b/Userland/Libraries/LibWeb/CSS/MediaList.cpp @@ -29,7 +29,7 @@ MediaList::MediaList(JS::Realm& realm, Vector>&& media void MediaList::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MediaList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MediaList"_fly_string)); } // https://www.w3.org/TR/cssom-1/#dom-medialist-mediatext diff --git a/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp b/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp index af67ba2745..633d85c490 100644 --- a/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp +++ b/Userland/Libraries/LibWeb/CSS/MediaQueryList.cpp @@ -33,7 +33,7 @@ MediaQueryList::MediaQueryList(DOM::Document& document, Vector(realm, "MediaQueryList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MediaQueryList"_fly_string)); } void MediaQueryList::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/CSS/MediaQueryListEvent.cpp b/Userland/Libraries/LibWeb/CSS/MediaQueryListEvent.cpp index 36d618fd8a..c175a313f0 100644 --- a/Userland/Libraries/LibWeb/CSS/MediaQueryListEvent.cpp +++ b/Userland/Libraries/LibWeb/CSS/MediaQueryListEvent.cpp @@ -29,7 +29,7 @@ MediaQueryListEvent::~MediaQueryListEvent() = default; void MediaQueryListEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MediaQueryListEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MediaQueryListEvent"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/CSS/Screen.cpp b/Userland/Libraries/LibWeb/CSS/Screen.cpp index 8c84ecacd2..0bc2435367 100644 --- a/Userland/Libraries/LibWeb/CSS/Screen.cpp +++ b/Userland/Libraries/LibWeb/CSS/Screen.cpp @@ -29,7 +29,7 @@ Screen::Screen(HTML::Window& window) void Screen::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Screen")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Screen"_fly_string)); } void Screen::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/CSS/StyleSheetList.cpp b/Userland/Libraries/LibWeb/CSS/StyleSheetList.cpp index 33e711bed4..ff81dcbbac 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleSheetList.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleSheetList.cpp @@ -79,7 +79,7 @@ StyleSheetList::StyleSheetList(DOM::Document& document) void StyleSheetList::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "StyleSheetList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "StyleSheetList"_fly_string)); } void StyleSheetList::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/CSS/VisualViewport.cpp b/Userland/Libraries/LibWeb/CSS/VisualViewport.cpp index 2001e79270..c4f2b02257 100644 --- a/Userland/Libraries/LibWeb/CSS/VisualViewport.cpp +++ b/Userland/Libraries/LibWeb/CSS/VisualViewport.cpp @@ -31,7 +31,7 @@ VisualViewport::VisualViewport(DOM::Document& document) void VisualViewport::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "VisualViewport")); + set_prototype(&Bindings::ensure_web_prototype(realm, "VisualViewport"_fly_string)); } void VisualViewport::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Clipboard/Clipboard.cpp b/Userland/Libraries/LibWeb/Clipboard/Clipboard.cpp index 5c0c1b0879..de8cc4e819 100644 --- a/Userland/Libraries/LibWeb/Clipboard/Clipboard.cpp +++ b/Userland/Libraries/LibWeb/Clipboard/Clipboard.cpp @@ -36,7 +36,7 @@ Clipboard::~Clipboard() = default; void Clipboard::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Clipboard")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Clipboard"_fly_string)); } // https://w3c.github.io/clipboard-apis/#os-specific-well-known-format diff --git a/Userland/Libraries/LibWeb/Crypto/Crypto.cpp b/Userland/Libraries/LibWeb/Crypto/Crypto.cpp index e5bef6a2f3..6a07f775a8 100644 --- a/Userland/Libraries/LibWeb/Crypto/Crypto.cpp +++ b/Userland/Libraries/LibWeb/Crypto/Crypto.cpp @@ -33,7 +33,7 @@ Crypto::~Crypto() = default; void Crypto::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Crypto")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Crypto"_fly_string)); m_subtle = SubtleCrypto::create(realm); } diff --git a/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp index 639ff216aa..021edd1646 100644 --- a/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp +++ b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp @@ -32,7 +32,7 @@ SubtleCrypto::~SubtleCrypto() = default; void SubtleCrypto::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SubtleCrypto")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SubtleCrypto"_fly_string)); } // https://w3c.github.io/webcrypto/#dfn-SubtleCrypto-method-digest diff --git a/Userland/Libraries/LibWeb/DOM/AbortController.cpp b/Userland/Libraries/LibWeb/DOM/AbortController.cpp index 61b387dcd8..324b4cb378 100644 --- a/Userland/Libraries/LibWeb/DOM/AbortController.cpp +++ b/Userland/Libraries/LibWeb/DOM/AbortController.cpp @@ -30,7 +30,7 @@ AbortController::~AbortController() = default; void AbortController::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "AbortController")); + set_prototype(&Bindings::ensure_web_prototype(realm, "AbortController"_fly_string)); } void AbortController::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/AbortSignal.cpp b/Userland/Libraries/LibWeb/DOM/AbortSignal.cpp index 009dc044f4..1b23ffc3cd 100644 --- a/Userland/Libraries/LibWeb/DOM/AbortSignal.cpp +++ b/Userland/Libraries/LibWeb/DOM/AbortSignal.cpp @@ -27,7 +27,7 @@ AbortSignal::AbortSignal(JS::Realm& realm) void AbortSignal::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "AbortSignal")); + set_prototype(&Bindings::ensure_web_prototype(realm, "AbortSignal"_fly_string)); } // https://dom.spec.whatwg.org/#abortsignal-add diff --git a/Userland/Libraries/LibWeb/DOM/AbstractRange.cpp b/Userland/Libraries/LibWeb/DOM/AbstractRange.cpp index bafcba3046..8a32a55974 100644 --- a/Userland/Libraries/LibWeb/DOM/AbstractRange.cpp +++ b/Userland/Libraries/LibWeb/DOM/AbstractRange.cpp @@ -24,7 +24,7 @@ AbstractRange::~AbstractRange() = default; void AbstractRange::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "AbstractRange")); + set_prototype(&Bindings::ensure_web_prototype(realm, "AbstractRange"_fly_string)); } void AbstractRange::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/Attr.cpp b/Userland/Libraries/LibWeb/DOM/Attr.cpp index a9ae2e9bbd..3be89605ae 100644 --- a/Userland/Libraries/LibWeb/DOM/Attr.cpp +++ b/Userland/Libraries/LibWeb/DOM/Attr.cpp @@ -43,7 +43,7 @@ Attr::Attr(Document& document, QualifiedName qualified_name, String value, Eleme void Attr::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Attr")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Attr"_fly_string)); } void Attr::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/CDATASection.cpp b/Userland/Libraries/LibWeb/DOM/CDATASection.cpp index d65f5ead0e..c7b8491abf 100644 --- a/Userland/Libraries/LibWeb/DOM/CDATASection.cpp +++ b/Userland/Libraries/LibWeb/DOM/CDATASection.cpp @@ -21,7 +21,7 @@ CDATASection::~CDATASection() = default; void CDATASection::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CDATASection")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CDATASection"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/DOM/CharacterData.cpp b/Userland/Libraries/LibWeb/DOM/CharacterData.cpp index 050d3e365b..a3fc908941 100644 --- a/Userland/Libraries/LibWeb/DOM/CharacterData.cpp +++ b/Userland/Libraries/LibWeb/DOM/CharacterData.cpp @@ -25,7 +25,7 @@ CharacterData::CharacterData(Document& document, NodeType type, String const& da void CharacterData::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CharacterData")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CharacterData"_fly_string)); } // https://dom.spec.whatwg.org/#dom-characterdata-data diff --git a/Userland/Libraries/LibWeb/DOM/Comment.cpp b/Userland/Libraries/LibWeb/DOM/Comment.cpp index 0e67656729..63f174e0d5 100644 --- a/Userland/Libraries/LibWeb/DOM/Comment.cpp +++ b/Userland/Libraries/LibWeb/DOM/Comment.cpp @@ -28,7 +28,7 @@ WebIDL::ExceptionOr> Comment::construct_impl(JS::Realm void Comment::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Comment")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Comment"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/DOM/CustomEvent.cpp b/Userland/Libraries/LibWeb/DOM/CustomEvent.cpp index 31122fc203..e22480f24a 100644 --- a/Userland/Libraries/LibWeb/DOM/CustomEvent.cpp +++ b/Userland/Libraries/LibWeb/DOM/CustomEvent.cpp @@ -34,7 +34,7 @@ CustomEvent::~CustomEvent() = default; void CustomEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CustomEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CustomEvent"_fly_string)); } void CustomEvent::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/DOMImplementation.cpp b/Userland/Libraries/LibWeb/DOM/DOMImplementation.cpp index 4f53ce7b2f..202881a57e 100644 --- a/Userland/Libraries/LibWeb/DOM/DOMImplementation.cpp +++ b/Userland/Libraries/LibWeb/DOM/DOMImplementation.cpp @@ -36,7 +36,7 @@ DOMImplementation::~DOMImplementation() = default; void DOMImplementation::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMImplementation")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMImplementation"_fly_string)); } void DOMImplementation::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp b/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp index 637598ecbb..f09d16cd3a 100644 --- a/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp +++ b/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp @@ -73,7 +73,7 @@ DOMTokenList::DOMTokenList(Element& associated_element, FlyString associated_att void DOMTokenList::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMTokenList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMTokenList"_fly_string)); } void DOMTokenList::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index f4e55357ad..fcc9cdaecb 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -344,7 +344,7 @@ Document::~Document() void Document::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Document")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Document"_fly_string)); m_selection = heap().allocate(realm, realm, *this); diff --git a/Userland/Libraries/LibWeb/DOM/DocumentFragment.cpp b/Userland/Libraries/LibWeb/DOM/DocumentFragment.cpp index 4100968fd1..58a0f1754a 100644 --- a/Userland/Libraries/LibWeb/DOM/DocumentFragment.cpp +++ b/Userland/Libraries/LibWeb/DOM/DocumentFragment.cpp @@ -19,7 +19,7 @@ DocumentFragment::DocumentFragment(Document& document) void DocumentFragment::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DocumentFragment")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DocumentFragment"_fly_string)); } void DocumentFragment::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/DocumentType.cpp b/Userland/Libraries/LibWeb/DOM/DocumentType.cpp index aa53139c04..925f48d3b6 100644 --- a/Userland/Libraries/LibWeb/DOM/DocumentType.cpp +++ b/Userland/Libraries/LibWeb/DOM/DocumentType.cpp @@ -24,7 +24,7 @@ DocumentType::DocumentType(Document& document) void DocumentType::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DocumentType")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DocumentType"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 7203b03af3..29b5f1e78a 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -80,7 +80,7 @@ Element::~Element() = default; void Element::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Element")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Element"_fly_string)); m_attributes = NamedNodeMap::create(*this); } diff --git a/Userland/Libraries/LibWeb/DOM/Event.cpp b/Userland/Libraries/LibWeb/DOM/Event.cpp index 3a4fe8dc92..4a13e479f7 100644 --- a/Userland/Libraries/LibWeb/DOM/Event.cpp +++ b/Userland/Libraries/LibWeb/DOM/Event.cpp @@ -46,7 +46,7 @@ Event::Event(JS::Realm& realm, FlyString const& type, EventInit const& event_ini void Event::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Event")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Event"_fly_string)); } void Event::visit_edges(Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/EventTarget.cpp b/Userland/Libraries/LibWeb/DOM/EventTarget.cpp index aacac46ad9..48d8205728 100644 --- a/Userland/Libraries/LibWeb/DOM/EventTarget.cpp +++ b/Userland/Libraries/LibWeb/DOM/EventTarget.cpp @@ -59,7 +59,7 @@ void EventTarget::initialize(JS::Realm& realm) // FIXME: We can't do this for HTML::Window or HTML::WorkerGlobalScope, as this will run when creating the initial global object. // During this time, the ESO is not setup, so it will cause a nullptr dereference in host_defined_intrinsics. if (!is(this)) - set_prototype(&Bindings::ensure_web_prototype(realm, "EventTarget")); + set_prototype(&Bindings::ensure_web_prototype(realm, "EventTarget"_fly_string)); } void EventTarget::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp b/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp index 3f14d61216..8e4a2901c4 100644 --- a/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp +++ b/Userland/Libraries/LibWeb/DOM/HTMLCollection.cpp @@ -33,7 +33,7 @@ HTMLCollection::~HTMLCollection() = default; void HTMLCollection::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLCollection")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLCollection"_fly_string)); } void HTMLCollection::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/HTMLFormControlsCollection.cpp b/Userland/Libraries/LibWeb/DOM/HTMLFormControlsCollection.cpp index ae3fafdb3c..47642e6f09 100644 --- a/Userland/Libraries/LibWeb/DOM/HTMLFormControlsCollection.cpp +++ b/Userland/Libraries/LibWeb/DOM/HTMLFormControlsCollection.cpp @@ -29,7 +29,7 @@ HTMLFormControlsCollection::~HTMLFormControlsCollection() = default; void HTMLFormControlsCollection::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFormControlsCollection")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFormControlsCollection"_fly_string)); } // https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#dom-htmlformcontrolscollection-nameditem diff --git a/Userland/Libraries/LibWeb/DOM/MutationObserver.cpp b/Userland/Libraries/LibWeb/DOM/MutationObserver.cpp index c964fa53ab..db69ea2256 100644 --- a/Userland/Libraries/LibWeb/DOM/MutationObserver.cpp +++ b/Userland/Libraries/LibWeb/DOM/MutationObserver.cpp @@ -42,7 +42,7 @@ MutationObserver::~MutationObserver() void MutationObserver::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MutationObserver")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MutationObserver"_fly_string)); } void MutationObserver::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/MutationRecord.cpp b/Userland/Libraries/LibWeb/DOM/MutationRecord.cpp index 2d6ed58b1b..3c8c3b7f0f 100644 --- a/Userland/Libraries/LibWeb/DOM/MutationRecord.cpp +++ b/Userland/Libraries/LibWeb/DOM/MutationRecord.cpp @@ -38,7 +38,7 @@ MutationRecord::~MutationRecord() = default; void MutationRecord::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MutationRecord")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MutationRecord"_fly_string)); } void MutationRecord::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp index 1021bb8da3..46b83d7c68 100644 --- a/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp +++ b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.cpp @@ -31,7 +31,7 @@ NamedNodeMap::NamedNodeMap(Element& element) void NamedNodeMap::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "NamedNodeMap")); + set_prototype(&Bindings::ensure_web_prototype(realm, "NamedNodeMap"_fly_string)); } void NamedNodeMap::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/NodeIterator.cpp b/Userland/Libraries/LibWeb/DOM/NodeIterator.cpp index 44db2c7c66..1c7344124c 100644 --- a/Userland/Libraries/LibWeb/DOM/NodeIterator.cpp +++ b/Userland/Libraries/LibWeb/DOM/NodeIterator.cpp @@ -26,7 +26,7 @@ NodeIterator::~NodeIterator() = default; void NodeIterator::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "NodeIterator")); + set_prototype(&Bindings::ensure_web_prototype(realm, "NodeIterator"_fly_string)); } void NodeIterator::finalize() diff --git a/Userland/Libraries/LibWeb/DOM/NodeList.cpp b/Userland/Libraries/LibWeb/DOM/NodeList.cpp index b78851125a..c8f77e2b26 100644 --- a/Userland/Libraries/LibWeb/DOM/NodeList.cpp +++ b/Userland/Libraries/LibWeb/DOM/NodeList.cpp @@ -20,7 +20,7 @@ NodeList::~NodeList() = default; void NodeList::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "NodeList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "NodeList"_fly_string)); } WebIDL::ExceptionOr NodeList::item_value(size_t index) const diff --git a/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp b/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp index 60fb219769..b50286b625 100644 --- a/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp +++ b/Userland/Libraries/LibWeb/DOM/ProcessingInstruction.cpp @@ -22,7 +22,7 @@ ProcessingInstruction::ProcessingInstruction(Document& document, DeprecatedStrin void ProcessingInstruction::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ProcessingInstruction")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ProcessingInstruction"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/DOM/RadioNodeList.cpp b/Userland/Libraries/LibWeb/DOM/RadioNodeList.cpp index a1d63f4f37..56e29f996d 100644 --- a/Userland/Libraries/LibWeb/DOM/RadioNodeList.cpp +++ b/Userland/Libraries/LibWeb/DOM/RadioNodeList.cpp @@ -29,7 +29,7 @@ RadioNodeList::~RadioNodeList() = default; void RadioNodeList::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "RadioNodeList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "RadioNodeList"_fly_string)); } static HTML::HTMLInputElement const* radio_button(Node const& node) diff --git a/Userland/Libraries/LibWeb/DOM/Range.cpp b/Userland/Libraries/LibWeb/DOM/Range.cpp index d85e77076c..cbb1e86e3d 100644 --- a/Userland/Libraries/LibWeb/DOM/Range.cpp +++ b/Userland/Libraries/LibWeb/DOM/Range.cpp @@ -75,7 +75,7 @@ Range::~Range() void Range::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Range")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Range"_fly_string)); } void Range::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/ShadowRoot.cpp b/Userland/Libraries/LibWeb/DOM/ShadowRoot.cpp index 4ee1d1d149..08cf4a1cc9 100644 --- a/Userland/Libraries/LibWeb/DOM/ShadowRoot.cpp +++ b/Userland/Libraries/LibWeb/DOM/ShadowRoot.cpp @@ -24,7 +24,7 @@ ShadowRoot::ShadowRoot(Document& document, Element& host, Bindings::ShadowRootMo void ShadowRoot::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ShadowRoot")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ShadowRoot"_fly_string)); } // https://dom.spec.whatwg.org/#ref-for-get-the-parent%E2%91%A6 diff --git a/Userland/Libraries/LibWeb/DOM/StaticRange.cpp b/Userland/Libraries/LibWeb/DOM/StaticRange.cpp index 161d3ea419..bd113c1a9b 100644 --- a/Userland/Libraries/LibWeb/DOM/StaticRange.cpp +++ b/Userland/Libraries/LibWeb/DOM/StaticRange.cpp @@ -40,7 +40,7 @@ WebIDL::ExceptionOr> StaticRange::construct_impl(J void StaticRange::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "StaticRange")); + set_prototype(&Bindings::ensure_web_prototype(realm, "StaticRange"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/DOM/Text.cpp b/Userland/Libraries/LibWeb/DOM/Text.cpp index 1118f63cd6..739ab63e69 100644 --- a/Userland/Libraries/LibWeb/DOM/Text.cpp +++ b/Userland/Libraries/LibWeb/DOM/Text.cpp @@ -28,7 +28,7 @@ Text::Text(Document& document, NodeType type, String const& data) void Text::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Text")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Text"_fly_string)); } void Text::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/TreeWalker.cpp b/Userland/Libraries/LibWeb/DOM/TreeWalker.cpp index 519040f367..ef87a0cc4e 100644 --- a/Userland/Libraries/LibWeb/DOM/TreeWalker.cpp +++ b/Userland/Libraries/LibWeb/DOM/TreeWalker.cpp @@ -27,7 +27,7 @@ TreeWalker::~TreeWalker() = default; void TreeWalker::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "TreeWalker")); + set_prototype(&Bindings::ensure_web_prototype(realm, "TreeWalker"_fly_string)); } void TreeWalker::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/DOM/XMLDocument.cpp b/Userland/Libraries/LibWeb/DOM/XMLDocument.cpp index 255478ab80..0377372d94 100644 --- a/Userland/Libraries/LibWeb/DOM/XMLDocument.cpp +++ b/Userland/Libraries/LibWeb/DOM/XMLDocument.cpp @@ -24,7 +24,7 @@ XMLDocument::XMLDocument(JS::Realm& realm, AK::URL const& url) void XMLDocument::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "XMLDocument")); + set_prototype(&Bindings::ensure_web_prototype(realm, "XMLDocument"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp b/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp index 25559a45e1..c2d2036519 100644 --- a/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp +++ b/Userland/Libraries/LibWeb/DOMParsing/XMLSerializer.cpp @@ -40,7 +40,7 @@ XMLSerializer::~XMLSerializer() = default; void XMLSerializer::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "XMLSerializer")); + set_prototype(&Bindings::ensure_web_prototype(realm, "XMLSerializer"_fly_string)); } // https://w3c.github.io/DOM-Parsing/#dom-xmlserializer-serializetostring diff --git a/Userland/Libraries/LibWeb/Encoding/TextDecoder.cpp b/Userland/Libraries/LibWeb/Encoding/TextDecoder.cpp index b8e31ac4b7..0166fa7407 100644 --- a/Userland/Libraries/LibWeb/Encoding/TextDecoder.cpp +++ b/Userland/Libraries/LibWeb/Encoding/TextDecoder.cpp @@ -41,7 +41,7 @@ TextDecoder::~TextDecoder() = default; void TextDecoder::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "TextDecoder")); + set_prototype(&Bindings::ensure_web_prototype(realm, "TextDecoder"_fly_string)); } // https://encoding.spec.whatwg.org/#dom-textdecoder-decode diff --git a/Userland/Libraries/LibWeb/Encoding/TextEncoder.cpp b/Userland/Libraries/LibWeb/Encoding/TextEncoder.cpp index a84e03d885..766ec0e88d 100644 --- a/Userland/Libraries/LibWeb/Encoding/TextEncoder.cpp +++ b/Userland/Libraries/LibWeb/Encoding/TextEncoder.cpp @@ -28,7 +28,7 @@ TextEncoder::~TextEncoder() = default; void TextEncoder::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "TextEncoder")); + set_prototype(&Bindings::ensure_web_prototype(realm, "TextEncoder"_fly_string)); } // https://encoding.spec.whatwg.org/#dom-textencoder-encode diff --git a/Userland/Libraries/LibWeb/Fetch/Headers.cpp b/Userland/Libraries/LibWeb/Fetch/Headers.cpp index 153ae81704..011c9bbe95 100644 --- a/Userland/Libraries/LibWeb/Fetch/Headers.cpp +++ b/Userland/Libraries/LibWeb/Fetch/Headers.cpp @@ -42,7 +42,7 @@ Headers::~Headers() = default; void Headers::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Headers")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Headers"_fly_string)); } void Headers::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Fetch/HeadersIterator.cpp b/Userland/Libraries/LibWeb/Fetch/HeadersIterator.cpp index 04a6930885..d0330b2cfe 100644 --- a/Userland/Libraries/LibWeb/Fetch/HeadersIterator.cpp +++ b/Userland/Libraries/LibWeb/Fetch/HeadersIterator.cpp @@ -16,7 +16,7 @@ template<> void Intrinsics::create_web_prototype_and_constructor(JS::Realm& realm) { auto prototype = heap().allocate(realm, realm); - m_prototypes.set("HeadersIterator"sv, prototype); + m_prototypes.set("HeadersIterator"_fly_string, prototype); } } @@ -42,7 +42,7 @@ HeadersIterator::~HeadersIterator() = default; void HeadersIterator::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HeadersIterator")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HeadersIterator"_fly_string)); } void HeadersIterator::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Fetch/Request.cpp b/Userland/Libraries/LibWeb/Fetch/Request.cpp index 74c8414818..85725d799d 100644 --- a/Userland/Libraries/LibWeb/Fetch/Request.cpp +++ b/Userland/Libraries/LibWeb/Fetch/Request.cpp @@ -34,7 +34,7 @@ Request::~Request() = default; void Request::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Request")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Request"_fly_string)); } void Request::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Fetch/Response.cpp b/Userland/Libraries/LibWeb/Fetch/Response.cpp index 6f81ad9187..68e5de352b 100644 --- a/Userland/Libraries/LibWeb/Fetch/Response.cpp +++ b/Userland/Libraries/LibWeb/Fetch/Response.cpp @@ -31,7 +31,7 @@ Response::~Response() = default; void Response::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Response")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Response"_fly_string)); } void Response::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/FileAPI/Blob.cpp b/Userland/Libraries/LibWeb/FileAPI/Blob.cpp index 493a462bd6..9208927a19 100644 --- a/Userland/Libraries/LibWeb/FileAPI/Blob.cpp +++ b/Userland/Libraries/LibWeb/FileAPI/Blob.cpp @@ -145,7 +145,7 @@ Blob::~Blob() = default; void Blob::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Blob")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Blob"_fly_string)); } // https://w3c.github.io/FileAPI/#ref-for-dom-blob-blob diff --git a/Userland/Libraries/LibWeb/FileAPI/File.cpp b/Userland/Libraries/LibWeb/FileAPI/File.cpp index 2240d893fb..47c99cc628 100644 --- a/Userland/Libraries/LibWeb/FileAPI/File.cpp +++ b/Userland/Libraries/LibWeb/FileAPI/File.cpp @@ -24,7 +24,7 @@ File::File(JS::Realm& realm, ByteBuffer byte_buffer, String file_name, String ty void File::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "File")); + set_prototype(&Bindings::ensure_web_prototype(realm, "File"_fly_string)); } File::~File() = default; diff --git a/Userland/Libraries/LibWeb/FileAPI/FileList.cpp b/Userland/Libraries/LibWeb/FileAPI/FileList.cpp index ec259dbda0..505611bbc7 100644 --- a/Userland/Libraries/LibWeb/FileAPI/FileList.cpp +++ b/Userland/Libraries/LibWeb/FileAPI/FileList.cpp @@ -27,7 +27,7 @@ FileList::~FileList() = default; void FileList::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "FileList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "FileList"_fly_string)); } // https://w3c.github.io/FileAPI/#dfn-item diff --git a/Userland/Libraries/LibWeb/FileAPI/FileReader.cpp b/Userland/Libraries/LibWeb/FileAPI/FileReader.cpp index 0a4d7cc125..405d0f0f1f 100644 --- a/Userland/Libraries/LibWeb/FileAPI/FileReader.cpp +++ b/Userland/Libraries/LibWeb/FileAPI/FileReader.cpp @@ -42,7 +42,7 @@ FileReader::FileReader(JS::Realm& realm) void FileReader::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "FileReader")); + set_prototype(&Bindings::ensure_web_prototype(realm, "FileReader"_fly_string)); } void FileReader::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Geometry/DOMMatrix.cpp b/Userland/Libraries/LibWeb/Geometry/DOMMatrix.cpp index a000161f7b..8d1ef71710 100644 --- a/Userland/Libraries/LibWeb/Geometry/DOMMatrix.cpp +++ b/Userland/Libraries/LibWeb/Geometry/DOMMatrix.cpp @@ -99,7 +99,7 @@ DOMMatrix::~DOMMatrix() = default; void DOMMatrix::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMMatrix")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMMatrix"_fly_string)); } // https://drafts.fxtf.org/geometry/#dom-dommatrix-frommatrix diff --git a/Userland/Libraries/LibWeb/Geometry/DOMMatrixReadOnly.cpp b/Userland/Libraries/LibWeb/Geometry/DOMMatrixReadOnly.cpp index f8b3a2d173..ebc3333453 100644 --- a/Userland/Libraries/LibWeb/Geometry/DOMMatrixReadOnly.cpp +++ b/Userland/Libraries/LibWeb/Geometry/DOMMatrixReadOnly.cpp @@ -133,7 +133,7 @@ DOMMatrixReadOnly::~DOMMatrixReadOnly() = default; void DOMMatrixReadOnly::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMMatrixReadOnly")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMMatrixReadOnly"_fly_string)); } // https://drafts.fxtf.org/geometry/#create-a-2d-matrix diff --git a/Userland/Libraries/LibWeb/Geometry/DOMPoint.cpp b/Userland/Libraries/LibWeb/Geometry/DOMPoint.cpp index 4b86e32c8a..fb30785437 100644 --- a/Userland/Libraries/LibWeb/Geometry/DOMPoint.cpp +++ b/Userland/Libraries/LibWeb/Geometry/DOMPoint.cpp @@ -34,7 +34,7 @@ DOMPoint::~DOMPoint() = default; void DOMPoint::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMPoint")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMPoint"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/Geometry/DOMPointReadOnly.cpp b/Userland/Libraries/LibWeb/Geometry/DOMPointReadOnly.cpp index 6759a214eb..c31c8809bc 100644 --- a/Userland/Libraries/LibWeb/Geometry/DOMPointReadOnly.cpp +++ b/Userland/Libraries/LibWeb/Geometry/DOMPointReadOnly.cpp @@ -50,7 +50,7 @@ WebIDL::ExceptionOr> DOMPointReadOnly::matrix_transfo void DOMPointReadOnly::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMPointReadOnly")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMPointReadOnly"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/Geometry/DOMQuad.cpp b/Userland/Libraries/LibWeb/Geometry/DOMQuad.cpp index a6b93d4717..f11954f959 100644 --- a/Userland/Libraries/LibWeb/Geometry/DOMQuad.cpp +++ b/Userland/Libraries/LibWeb/Geometry/DOMQuad.cpp @@ -75,7 +75,7 @@ JS::NonnullGCPtr DOMQuad::get_bounds() const void DOMQuad::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMQuad")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMQuad"_fly_string)); } void DOMQuad::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Geometry/DOMRect.cpp b/Userland/Libraries/LibWeb/Geometry/DOMRect.cpp index a0705f68e3..bfd627e414 100644 --- a/Userland/Libraries/LibWeb/Geometry/DOMRect.cpp +++ b/Userland/Libraries/LibWeb/Geometry/DOMRect.cpp @@ -39,7 +39,7 @@ DOMRect::~DOMRect() = default; void DOMRect::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMRect")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMRect"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/Geometry/DOMRectList.cpp b/Userland/Libraries/LibWeb/Geometry/DOMRectList.cpp index 0fb23331a8..5570a0eab3 100644 --- a/Userland/Libraries/LibWeb/Geometry/DOMRectList.cpp +++ b/Userland/Libraries/LibWeb/Geometry/DOMRectList.cpp @@ -33,7 +33,7 @@ DOMRectList::~DOMRectList() = default; void DOMRectList::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMRectList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMRectList"_fly_string)); } // https://drafts.fxtf.org/geometry-1/#dom-domrectlist-length diff --git a/Userland/Libraries/LibWeb/Geometry/DOMRectReadOnly.cpp b/Userland/Libraries/LibWeb/Geometry/DOMRectReadOnly.cpp index f4cd848c2c..09d0665841 100644 --- a/Userland/Libraries/LibWeb/Geometry/DOMRectReadOnly.cpp +++ b/Userland/Libraries/LibWeb/Geometry/DOMRectReadOnly.cpp @@ -35,7 +35,7 @@ DOMRectReadOnly::~DOMRectReadOnly() = default; void DOMRectReadOnly::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMRectReadOnly")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMRectReadOnly"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/AudioTrack.cpp b/Userland/Libraries/LibWeb/HTML/AudioTrack.cpp index da8fe292ac..78bec9419d 100644 --- a/Userland/Libraries/LibWeb/HTML/AudioTrack.cpp +++ b/Userland/Libraries/LibWeb/HTML/AudioTrack.cpp @@ -49,7 +49,7 @@ AudioTrack::~AudioTrack() void AudioTrack::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "AudioTrack")); + set_prototype(&Bindings::ensure_web_prototype(realm, "AudioTrack"_fly_string)); auto id = s_audio_track_id_allocator.allocate(); m_id = MUST(String::number(id)); diff --git a/Userland/Libraries/LibWeb/HTML/AudioTrackList.cpp b/Userland/Libraries/LibWeb/HTML/AudioTrackList.cpp index 62c014d768..218eff9b73 100644 --- a/Userland/Libraries/LibWeb/HTML/AudioTrackList.cpp +++ b/Userland/Libraries/LibWeb/HTML/AudioTrackList.cpp @@ -24,7 +24,7 @@ AudioTrackList::AudioTrackList(JS::Realm& realm) void AudioTrackList::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "AudioTrackList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "AudioTrackList"_fly_string)); } // https://html.spec.whatwg.org/multipage/media.html#dom-tracklist-item diff --git a/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp b/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp index 28fd11d9ee..67d4e5b486 100644 --- a/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp +++ b/Userland/Libraries/LibWeb/HTML/CanvasGradient.cpp @@ -52,7 +52,7 @@ CanvasGradient::~CanvasGradient() = default; void CanvasGradient::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CanvasGradient")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CanvasGradient"_fly_string)); } // https://html.spec.whatwg.org/multipage/canvas.html#dom-canvasgradient-addcolorstop diff --git a/Userland/Libraries/LibWeb/HTML/CanvasPattern.cpp b/Userland/Libraries/LibWeb/HTML/CanvasPattern.cpp index 71be47be17..72bc546c21 100644 --- a/Userland/Libraries/LibWeb/HTML/CanvasPattern.cpp +++ b/Userland/Libraries/LibWeb/HTML/CanvasPattern.cpp @@ -138,7 +138,7 @@ WebIDL::ExceptionOr> CanvasPattern::create(JS::Realm& r void CanvasPattern::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CanvasPattern")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CanvasPattern"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp index eb042a1584..2a632daa62 100644 --- a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp +++ b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp @@ -45,7 +45,7 @@ CanvasRenderingContext2D::~CanvasRenderingContext2D() = default; void CanvasRenderingContext2D::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CanvasRenderingContext2D")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CanvasRenderingContext2D"_fly_string)); } void CanvasRenderingContext2D::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/CloseEvent.cpp b/Userland/Libraries/LibWeb/HTML/CloseEvent.cpp index 681032b477..bfea23eab0 100644 --- a/Userland/Libraries/LibWeb/HTML/CloseEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/CloseEvent.cpp @@ -34,7 +34,7 @@ CloseEvent::~CloseEvent() = default; void CloseEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CloseEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CloseEvent"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/CustomElements/CustomElementRegistry.cpp b/Userland/Libraries/LibWeb/HTML/CustomElements/CustomElementRegistry.cpp index f8d363f6a7..c393e2a01a 100644 --- a/Userland/Libraries/LibWeb/HTML/CustomElements/CustomElementRegistry.cpp +++ b/Userland/Libraries/LibWeb/HTML/CustomElements/CustomElementRegistry.cpp @@ -32,7 +32,7 @@ CustomElementRegistry::~CustomElementRegistry() = default; void CustomElementRegistry::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CustomElementRegistry")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CustomElementRegistry"_fly_string)); } // https://webidl.spec.whatwg.org/#es-callback-function diff --git a/Userland/Libraries/LibWeb/HTML/DOMParser.cpp b/Userland/Libraries/LibWeb/HTML/DOMParser.cpp index 768f85105a..81618082a5 100644 --- a/Userland/Libraries/LibWeb/HTML/DOMParser.cpp +++ b/Userland/Libraries/LibWeb/HTML/DOMParser.cpp @@ -32,7 +32,7 @@ DOMParser::~DOMParser() = default; void DOMParser::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMParser")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMParser"_fly_string)); } // https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring diff --git a/Userland/Libraries/LibWeb/HTML/DOMStringMap.cpp b/Userland/Libraries/LibWeb/HTML/DOMStringMap.cpp index a8cff392ea..e3c2ce426d 100644 --- a/Userland/Libraries/LibWeb/HTML/DOMStringMap.cpp +++ b/Userland/Libraries/LibWeb/HTML/DOMStringMap.cpp @@ -31,7 +31,7 @@ DOMStringMap::~DOMStringMap() = default; void DOMStringMap::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMStringMap")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMStringMap"_fly_string)); } void DOMStringMap::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp b/Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp index ff6507c55d..e5d71da44b 100644 --- a/Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp @@ -36,7 +36,7 @@ ErrorEvent::~ErrorEvent() = default; void ErrorEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ErrorEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ErrorEvent"_fly_string)); } void ErrorEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/FormDataEvent.cpp b/Userland/Libraries/LibWeb/HTML/FormDataEvent.cpp index f1740aabb6..64f6a74a66 100644 --- a/Userland/Libraries/LibWeb/HTML/FormDataEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/FormDataEvent.cpp @@ -28,7 +28,7 @@ FormDataEvent::~FormDataEvent() = default; void FormDataEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "FormDataEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "FormDataEvent"_fly_string)); } void FormDataEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp index b3d1da2b29..64c6c71931 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp @@ -23,7 +23,7 @@ HTMLAnchorElement::~HTMLAnchorElement() = default; void HTMLAnchorElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLAnchorElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLAnchorElement"_fly_string)); } void HTMLAnchorElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp index c11ca5fb17..532c9034cf 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp @@ -22,7 +22,7 @@ HTMLAreaElement::~HTMLAreaElement() = default; void HTMLAreaElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLAreaElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLAreaElement"_fly_string)); } void HTMLAreaElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLAudioElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLAudioElement.cpp index 237c9e29f1..35d4bbcf60 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLAudioElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLAudioElement.cpp @@ -24,7 +24,7 @@ HTMLAudioElement::~HTMLAudioElement() = default; void HTMLAudioElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLAudioElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLAudioElement"_fly_string)); } JS::GCPtr HTMLAudioElement::create_layout_node(NonnullRefPtr style) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLBRElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLBRElement.cpp index 1271fb40f4..ed44de780c 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLBRElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLBRElement.cpp @@ -22,7 +22,7 @@ HTMLBRElement::~HTMLBRElement() = default; void HTMLBRElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLBRElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLBRElement"_fly_string)); } JS::GCPtr HTMLBRElement::create_layout_node(NonnullRefPtr style) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLBaseElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLBaseElement.cpp index 9b9232162d..9430abbf0c 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLBaseElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLBaseElement.cpp @@ -21,7 +21,7 @@ HTMLBaseElement::~HTMLBaseElement() = default; void HTMLBaseElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLBaseElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLBaseElement"_fly_string)); } void HTMLBaseElement::inserted() diff --git a/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.cpp index 4702a99e13..47cf404eb4 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLBodyElement.cpp @@ -34,7 +34,7 @@ void HTMLBodyElement::visit_edges(Visitor& visitor) void HTMLBodyElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLBodyElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLBodyElement"_fly_string)); } void HTMLBodyElement::apply_presentational_hints(CSS::StyleProperties& style) const diff --git a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp index 60e508a899..84e96248f0 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp @@ -22,7 +22,7 @@ HTMLButtonElement::~HTMLButtonElement() = default; void HTMLButtonElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLButtonElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLButtonElement"_fly_string)); } HTMLButtonElement::TypeAttributeState HTMLButtonElement::type_state() const diff --git a/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp index 1044f9fe2e..8a7d2feb7c 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp @@ -40,7 +40,7 @@ HTMLCanvasElement::~HTMLCanvasElement() = default; void HTMLCanvasElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLCanvasElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLCanvasElement"_fly_string)); } void HTMLCanvasElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDListElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDListElement.cpp index 2bb0033777..c475227bd9 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLDListElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLDListElement.cpp @@ -21,7 +21,7 @@ HTMLDListElement::~HTMLDListElement() = default; void HTMLDListElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDListElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDListElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDataElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDataElement.cpp index 265817ee54..df15102d50 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLDataElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLDataElement.cpp @@ -21,7 +21,7 @@ HTMLDataElement::~HTMLDataElement() = default; void HTMLDataElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDataElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDataElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDataListElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDataListElement.cpp index 7c3f9619ca..77ffa17668 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLDataListElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLDataListElement.cpp @@ -19,7 +19,7 @@ HTMLDataListElement::~HTMLDataListElement() = default; void HTMLDataListElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDataListElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDataListElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp index b411502d7f..aa1b4dc399 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLDetailsElement.cpp @@ -38,7 +38,7 @@ void HTMLDetailsElement::visit_edges(Cell::Visitor& visitor) void HTMLDetailsElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDetailsElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDetailsElement"_fly_string)); create_shadow_tree(realm).release_value_but_fixme_should_propagate_errors(); } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDialogElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDialogElement.cpp index e3c352a700..3607098a96 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLDialogElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLDialogElement.cpp @@ -21,7 +21,7 @@ HTMLDialogElement::~HTMLDialogElement() = default; void HTMLDialogElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDialogElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDialogElement"_fly_string)); } // https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-show diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp index 8764cd34f7..8729794e56 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLDirectoryElement.cpp @@ -21,7 +21,7 @@ HTMLDirectoryElement::~HTMLDirectoryElement() = default; void HTMLDirectoryElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDirectoryElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDirectoryElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLDivElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLDivElement.cpp index 5267db7eac..205122d03b 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLDivElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLDivElement.cpp @@ -40,7 +40,7 @@ void HTMLDivElement::apply_presentational_hints(CSS::StyleProperties& style) con void HTMLDivElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDivElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLDivElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp index 5d5e4d6693..6dbae57c59 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp @@ -48,7 +48,7 @@ HTMLElement::~HTMLElement() = default; void HTMLElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLElement"_fly_string)); m_dataset = DOMStringMap::create(*this); } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp index 06d7b5e0b6..67dd6941bc 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp @@ -21,7 +21,7 @@ HTMLEmbedElement::~HTMLEmbedElement() = default; void HTMLEmbedElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLEmbedElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLEmbedElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp index 36bff7c53c..d2409ef4f6 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp @@ -22,7 +22,7 @@ HTMLFieldSetElement::~HTMLFieldSetElement() = default; void HTMLFieldSetElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFieldSetElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFieldSetElement"_fly_string)); } // https://html.spec.whatwg.org/multipage/form-elements.html#concept-fieldset-disabled diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFontElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFontElement.cpp index c22f3552dc..ff998a5d32 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLFontElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLFontElement.cpp @@ -108,7 +108,7 @@ HTMLFontElement::~HTMLFontElement() = default; void HTMLFontElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFontElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFontElement"_fly_string)); } void HTMLFontElement::apply_presentational_hints(CSS::StyleProperties& style) const diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp index 4d06685374..f821faf48d 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp @@ -43,7 +43,7 @@ HTMLFormElement::~HTMLFormElement() = default; void HTMLFormElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFormElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFormElement"_fly_string)); } void HTMLFormElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFrameElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFrameElement.cpp index 30b0383c61..570cdbfdc4 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLFrameElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLFrameElement.cpp @@ -21,7 +21,7 @@ HTMLFrameElement::~HTMLFrameElement() = default; void HTMLFrameElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFrameElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFrameElement"_fly_string)); } // https://html.spec.whatwg.org/multipage/interaction.html#dom-tabindex diff --git a/Userland/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp index e88c8c9ad0..0f98059f31 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLFrameSetElement.cpp @@ -22,7 +22,7 @@ HTMLFrameSetElement::~HTMLFrameSetElement() = default; void HTMLFrameSetElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFrameSetElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLFrameSetElement"_fly_string)); } void HTMLFrameSetElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHRElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLHRElement.cpp index 98b8e6acce..421108bb3a 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLHRElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLHRElement.cpp @@ -21,7 +21,7 @@ HTMLHRElement::~HTMLHRElement() = default; void HTMLHRElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLHRElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLHRElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHeadElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLHeadElement.cpp index 4bebe15d54..dad17f877f 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLHeadElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLHeadElement.cpp @@ -21,7 +21,7 @@ HTMLHeadElement::~HTMLHeadElement() = default; void HTMLHeadElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLHeadElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLHeadElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp index f9928287f5..613e5b76d1 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp @@ -23,7 +23,7 @@ HTMLHeadingElement::~HTMLHeadingElement() = default; void HTMLHeadingElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLHeadingElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLHeadingElement"_fly_string)); } // https://html.spec.whatwg.org/multipage/rendering.html#tables-2 diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp index 2e9b67e2f7..6274dcd44d 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLHtmlElement.cpp @@ -22,7 +22,7 @@ HTMLHtmlElement::~HTMLHtmlElement() = default; void HTMLHtmlElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLHtmlElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLHtmlElement"_fly_string)); } bool HTMLHtmlElement::should_use_body_background_properties() const diff --git a/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp index 0f43e7c6fc..6b466f5bce 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp @@ -27,7 +27,7 @@ HTMLIFrameElement::~HTMLIFrameElement() = default; void HTMLIFrameElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLIFrameElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLIFrameElement"_fly_string)); } JS::GCPtr HTMLIFrameElement::create_layout_node(NonnullRefPtr style) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp index 62651ec82c..d069cf8044 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.cpp @@ -55,7 +55,7 @@ void HTMLImageElement::finalize() void HTMLImageElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLImageElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLImageElement"_fly_string)); m_current_request = ImageRequest::create(realm, *document().page()); } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp index f789cf0173..9533cc6c13 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp @@ -45,7 +45,7 @@ HTMLInputElement::~HTMLInputElement() = default; void HTMLInputElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLInputElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLInputElement"_fly_string)); } void HTMLInputElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLIElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLIElement.cpp index bfdaffd7c1..b51f0d5ea0 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLLIElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLLIElement.cpp @@ -21,7 +21,7 @@ HTMLLIElement::~HTMLLIElement() = default; void HTMLLIElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLLIElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLLIElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLabelElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLabelElement.cpp index e73966fae5..95a41f7539 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLLabelElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLLabelElement.cpp @@ -22,7 +22,7 @@ HTMLLabelElement::~HTMLLabelElement() = default; void HTMLLabelElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLLabelElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLLabelElement"_fly_string)); } JS::GCPtr HTMLLabelElement::create_layout_node(NonnullRefPtr style) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLegendElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLegendElement.cpp index 99f383d781..28cbc7f77e 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLLegendElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLLegendElement.cpp @@ -21,7 +21,7 @@ HTMLLegendElement::~HTMLLegendElement() = default; void HTMLLegendElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLLegendElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLLegendElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp index 54c1149dc5..2e3aa1c9e1 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp @@ -42,7 +42,7 @@ HTMLLinkElement::~HTMLLinkElement() = default; void HTMLLinkElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLLinkElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLLinkElement"_fly_string)); } void HTMLLinkElement::inserted() diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMapElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMapElement.cpp index 7cc0e41aa7..c39ad4b73a 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLMapElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLMapElement.cpp @@ -21,7 +21,7 @@ HTMLMapElement::~HTMLMapElement() = default; void HTMLMapElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMapElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMapElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp index 9c0b2c4984..d386096fe5 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.cpp @@ -24,7 +24,7 @@ HTMLMarqueeElement::~HTMLMarqueeElement() = default; void HTMLMarqueeElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMarqueeElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMarqueeElement"_fly_string)); } void HTMLMarqueeElement::apply_presentational_hints(CSS::StyleProperties& style) const diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp index c9d599ea55..f8d34bd1c9 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp @@ -50,7 +50,7 @@ HTMLMediaElement::~HTMLMediaElement() = default; void HTMLMediaElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMediaElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMediaElement"_fly_string)); m_audio_tracks = realm.heap().allocate(realm, realm); m_video_tracks = realm.heap().allocate(realm, realm); diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.cpp index 0d90bc01c2..e034025a8c 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLMenuElement.cpp @@ -21,7 +21,7 @@ HTMLMenuElement::~HTMLMenuElement() = default; void HTMLMenuElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMenuElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMenuElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMetaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMetaElement.cpp index aa7c8ff5da..0176db94bd 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLMetaElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLMetaElement.cpp @@ -29,7 +29,7 @@ HTMLMetaElement::~HTMLMetaElement() = default; void HTMLMetaElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMetaElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMetaElement"_fly_string)); } Optional HTMLMetaElement::http_equiv_state() const diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMeterElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLMeterElement.cpp index b51ab80f8a..9e18c719ea 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLMeterElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLMeterElement.cpp @@ -21,7 +21,7 @@ HTMLMeterElement::~HTMLMeterElement() = default; void HTMLMeterElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMeterElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLMeterElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLModElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLModElement.cpp index d8c5e01b5c..6925ef7cda 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLModElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLModElement.cpp @@ -22,7 +22,7 @@ HTMLModElement::~HTMLModElement() = default; void HTMLModElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLModElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLModElement"_fly_string)); } Optional HTMLModElement::default_role() const diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOListElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOListElement.cpp index 31a2b4c1cb..43fa8c7af9 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLOListElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLOListElement.cpp @@ -21,7 +21,7 @@ HTMLOListElement::~HTMLOListElement() = default; void HTMLOListElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLOListElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLOListElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.cpp index 208c82b582..e65111036b 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.cpp @@ -38,7 +38,7 @@ HTMLObjectElement::~HTMLObjectElement() = default; void HTMLObjectElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLObjectElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLObjectElement"_fly_string)); } void HTMLObjectElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp index 3685f195a0..9a06b7f36f 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp @@ -21,7 +21,7 @@ HTMLOptGroupElement::~HTMLOptGroupElement() = default; void HTMLOptGroupElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLOptGroupElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLOptGroupElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp index b0bc40be5a..5b23ea8384 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp @@ -30,7 +30,7 @@ HTMLOptionElement::~HTMLOptionElement() = default; void HTMLOptionElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLOptionElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLOptionElement"_fly_string)); } void HTMLOptionElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp index 079009ac32..b257f40681 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLOptionsCollection.cpp @@ -30,7 +30,7 @@ HTMLOptionsCollection::~HTMLOptionsCollection() = default; void HTMLOptionsCollection::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLOptionsCollection")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLOptionsCollection"_fly_string)); } // https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#dom-htmloptionscollection-add diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp index 52caee575d..44998f057a 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLOutputElement.cpp @@ -21,7 +21,7 @@ HTMLOutputElement::~HTMLOutputElement() = default; void HTMLOutputElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLOutputElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLOutputElement"_fly_string)); } // https://html.spec.whatwg.org/multipage/form-elements.html#the-output-element:concept-form-reset-control diff --git a/Userland/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp index 834a56065a..6b06962d39 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLParagraphElement.cpp @@ -23,7 +23,7 @@ HTMLParagraphElement::~HTMLParagraphElement() = default; void HTMLParagraphElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLParagraphElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLParagraphElement"_fly_string)); } // https://html.spec.whatwg.org/multipage/rendering.html#tables-2 diff --git a/Userland/Libraries/LibWeb/HTML/HTMLParamElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLParamElement.cpp index 3e0986b787..d1d672b478 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLParamElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLParamElement.cpp @@ -21,7 +21,7 @@ HTMLParamElement::~HTMLParamElement() = default; void HTMLParamElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLParamElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLParamElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLPictureElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLPictureElement.cpp index 9a59392ad5..57cea48918 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLPictureElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLPictureElement.cpp @@ -21,7 +21,7 @@ HTMLPictureElement::~HTMLPictureElement() = default; void HTMLPictureElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLPictureElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLPictureElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp index 1ad31eab81..c757acee3e 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp @@ -23,7 +23,7 @@ HTMLPreElement::~HTMLPreElement() = default; void HTMLPreElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLPreElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLPreElement"_fly_string)); } void HTMLPreElement::apply_presentational_hints(CSS::StyleProperties& style) const diff --git a/Userland/Libraries/LibWeb/HTML/HTMLProgressElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLProgressElement.cpp index deb499fcf4..caf00f0613 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLProgressElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLProgressElement.cpp @@ -26,7 +26,7 @@ HTMLProgressElement::~HTMLProgressElement() = default; void HTMLProgressElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLProgressElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLProgressElement"_fly_string)); } JS::GCPtr HTMLProgressElement::create_layout_node(NonnullRefPtr style) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp index 5bd1f219cd..312f4abda8 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLQuoteElement.cpp @@ -23,7 +23,7 @@ HTMLQuoteElement::~HTMLQuoteElement() = default; void HTMLQuoteElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLQuoteElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLQuoteElement"_fly_string)); } Optional HTMLQuoteElement::default_role() const diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp index a75313cbe1..3bdac45d09 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp @@ -35,7 +35,7 @@ HTMLScriptElement::~HTMLScriptElement() = default; void HTMLScriptElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLScriptElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLScriptElement"_fly_string)); } void HTMLScriptElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp index 35d37b2c80..82090fadf5 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp @@ -25,7 +25,7 @@ HTMLSelectElement::~HTMLSelectElement() = default; void HTMLSelectElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLSelectElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLSelectElement"_fly_string)); } void HTMLSelectElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLSlotElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLSlotElement.cpp index eca9dcd5db..4a52fc9cf2 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLSlotElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLSlotElement.cpp @@ -24,7 +24,7 @@ HTMLSlotElement::~HTMLSlotElement() = default; void HTMLSlotElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLSlotElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLSlotElement"_fly_string)); } void HTMLSlotElement::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLSourceElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLSourceElement.cpp index 88a61d44b2..5ac4a955ba 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLSourceElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLSourceElement.cpp @@ -23,7 +23,7 @@ HTMLSourceElement::~HTMLSourceElement() = default; void HTMLSourceElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLSourceElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLSourceElement"_fly_string)); } // https://html.spec.whatwg.org/multipage/embedded-content.html#the-source-element:the-source-element-15 diff --git a/Userland/Libraries/LibWeb/HTML/HTMLSpanElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLSpanElement.cpp index 4cf8baba26..5999fee082 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLSpanElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLSpanElement.cpp @@ -21,7 +21,7 @@ HTMLSpanElement::~HTMLSpanElement() = default; void HTMLSpanElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLSpanElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLSpanElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.cpp index e6376884a4..3134fd3920 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLStyleElement.cpp @@ -21,7 +21,7 @@ HTMLStyleElement::~HTMLStyleElement() = default; void HTMLStyleElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLStyleElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLStyleElement"_fly_string)); } void HTMLStyleElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp index 9ff0567baf..18adcb81ef 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTableCaptionElement.cpp @@ -23,7 +23,7 @@ HTMLTableCaptionElement::~HTMLTableCaptionElement() = default; void HTMLTableCaptionElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableCaptionElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableCaptionElement"_fly_string)); } // https://html.spec.whatwg.org/multipage/rendering.html#tables-2 diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp index cf98cda984..ff6b9749f9 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.cpp @@ -31,7 +31,7 @@ HTMLTableCellElement::~HTMLTableCellElement() = default; void HTMLTableCellElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableCellElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableCellElement"_fly_string)); } static const HTML::HTMLTableElement& table_containing_cell(const HTML::HTMLTableCellElement& node) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableColElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableColElement.cpp index 11c331d1e4..2378fa7bc4 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTableColElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTableColElement.cpp @@ -21,7 +21,7 @@ HTMLTableColElement::~HTMLTableColElement() = default; void HTMLTableColElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableColElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableColElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp index 9f535e607a..a26b714df1 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTableElement.cpp @@ -34,7 +34,7 @@ HTMLTableElement::~HTMLTableElement() = default; void HTMLTableElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableElement"_fly_string)); } void HTMLTableElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp index 6358da3a2f..fc1f759048 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTableRowElement.cpp @@ -35,7 +35,7 @@ HTMLTableRowElement::~HTMLTableRowElement() = default; void HTMLTableRowElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableRowElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableRowElement"_fly_string)); } void HTMLTableRowElement::apply_presentational_hints(CSS::StyleProperties& style) const diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp index 8821a72d5c..52c349ff50 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTableSectionElement.cpp @@ -26,7 +26,7 @@ HTMLTableSectionElement::~HTMLTableSectionElement() = default; void HTMLTableSectionElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableSectionElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTableSectionElement"_fly_string)); } void HTMLTableSectionElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp index 72a73520a1..0fccdfc105 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTemplateElement.cpp @@ -22,7 +22,7 @@ HTMLTemplateElement::~HTMLTemplateElement() = default; void HTMLTemplateElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTemplateElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTemplateElement"_fly_string)); m_content = heap().allocate(realm, m_document->appropriate_template_contents_owner_document()); m_content->set_host(this); diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp index 01ce0b4486..f671dce3e5 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp @@ -39,7 +39,7 @@ JS::GCPtr HTMLTextAreaElement::create_layout_node(NonnullRefPtr(realm, "HTMLTextAreaElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTextAreaElement"_fly_string)); } void HTMLTextAreaElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTimeElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTimeElement.cpp index 519fab1368..69f9151c01 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTimeElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTimeElement.cpp @@ -19,7 +19,7 @@ HTMLTimeElement::HTMLTimeElement(DOM::Document& document, DOM::QualifiedName qua void HTMLTimeElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTimeElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTimeElement"_fly_string)); } HTMLTimeElement::~HTMLTimeElement() = default; diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTitleElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTitleElement.cpp index e588f61052..0cd2afe57f 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTitleElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTitleElement.cpp @@ -23,7 +23,7 @@ HTMLTitleElement::~HTMLTitleElement() = default; void HTMLTitleElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTitleElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTitleElement"_fly_string)); } void HTMLTitleElement::children_changed() diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTrackElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTrackElement.cpp index f7714540df..09c983b04d 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTrackElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTrackElement.cpp @@ -21,7 +21,7 @@ HTMLTrackElement::~HTMLTrackElement() = default; void HTMLTrackElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTrackElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLTrackElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLUListElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLUListElement.cpp index 436edf2f42..6488b8c0b9 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLUListElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLUListElement.cpp @@ -21,7 +21,7 @@ HTMLUListElement::~HTMLUListElement() = default; void HTMLUListElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLUListElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLUListElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp index cc7bedbb42..2e5d0102d5 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp @@ -21,7 +21,7 @@ HTMLUnknownElement::~HTMLUnknownElement() = default; void HTMLUnknownElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLUnknownElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLUnknownElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp index 16e9ba0a0a..d1f9e7fbd4 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLVideoElement.cpp @@ -32,7 +32,7 @@ HTMLVideoElement::~HTMLVideoElement() = default; void HTMLVideoElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLVideoElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLVideoElement"_fly_string)); } void HTMLVideoElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/History.cpp b/Userland/Libraries/LibWeb/HTML/History.cpp index 383c27f845..274260c9cf 100644 --- a/Userland/Libraries/LibWeb/HTML/History.cpp +++ b/Userland/Libraries/LibWeb/HTML/History.cpp @@ -31,7 +31,7 @@ History::~History() = default; void History::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "History")); + set_prototype(&Bindings::ensure_web_prototype(realm, "History"_fly_string)); } void History::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/ImageData.cpp b/Userland/Libraries/LibWeb/HTML/ImageData.cpp index cf898df419..1fa96c2086 100644 --- a/Userland/Libraries/LibWeb/HTML/ImageData.cpp +++ b/Userland/Libraries/LibWeb/HTML/ImageData.cpp @@ -45,7 +45,7 @@ ImageData::~ImageData() = default; void ImageData::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ImageData")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ImageData"_fly_string)); } void ImageData::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/Location.cpp b/Userland/Libraries/LibWeb/HTML/Location.cpp index 29cbcdaa4c..338b73ae75 100644 --- a/Userland/Libraries/LibWeb/HTML/Location.cpp +++ b/Userland/Libraries/LibWeb/HTML/Location.cpp @@ -42,7 +42,7 @@ void Location::visit_edges(Cell::Visitor& visitor) void Location::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Location")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Location"_fly_string)); // FIXME: Implement steps 2.-4. diff --git a/Userland/Libraries/LibWeb/HTML/MediaError.cpp b/Userland/Libraries/LibWeb/HTML/MediaError.cpp index be133741d7..50b335338a 100644 --- a/Userland/Libraries/LibWeb/HTML/MediaError.cpp +++ b/Userland/Libraries/LibWeb/HTML/MediaError.cpp @@ -23,7 +23,7 @@ MediaError::MediaError(JS::Realm& realm, Code code, String message) void MediaError::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MediaError")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MediaError"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/MessageChannel.cpp b/Userland/Libraries/LibWeb/HTML/MessageChannel.cpp index 7a838c5686..a3bd149787 100644 --- a/Userland/Libraries/LibWeb/HTML/MessageChannel.cpp +++ b/Userland/Libraries/LibWeb/HTML/MessageChannel.cpp @@ -43,7 +43,7 @@ void MessageChannel::visit_edges(Cell::Visitor& visitor) void MessageChannel::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MessageChannel")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MessageChannel"_fly_string)); } MessagePort* MessageChannel::port1() diff --git a/Userland/Libraries/LibWeb/HTML/MessageEvent.cpp b/Userland/Libraries/LibWeb/HTML/MessageEvent.cpp index f0ab0d5c5e..cf261533d7 100644 --- a/Userland/Libraries/LibWeb/HTML/MessageEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/MessageEvent.cpp @@ -35,7 +35,7 @@ MessageEvent::~MessageEvent() = default; void MessageEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MessageEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MessageEvent"_fly_string)); } void MessageEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/MessagePort.cpp b/Userland/Libraries/LibWeb/HTML/MessagePort.cpp index db659c15ad..222a9dcf15 100644 --- a/Userland/Libraries/LibWeb/HTML/MessagePort.cpp +++ b/Userland/Libraries/LibWeb/HTML/MessagePort.cpp @@ -31,7 +31,7 @@ MessagePort::~MessagePort() = default; void MessagePort::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MessagePort")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MessagePort"_fly_string)); } void MessagePort::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/MimeType.cpp b/Userland/Libraries/LibWeb/HTML/MimeType.cpp index c61b1badeb..571f7ea75e 100644 --- a/Userland/Libraries/LibWeb/HTML/MimeType.cpp +++ b/Userland/Libraries/LibWeb/HTML/MimeType.cpp @@ -24,7 +24,7 @@ MimeType::~MimeType() = default; void MimeType::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MimeType")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MimeType"_fly_string)); } // https://html.spec.whatwg.org/multipage/system-state.html#concept-mimetype-type diff --git a/Userland/Libraries/LibWeb/HTML/MimeTypeArray.cpp b/Userland/Libraries/LibWeb/HTML/MimeTypeArray.cpp index 6eabd5a0db..d99b9442d6 100644 --- a/Userland/Libraries/LibWeb/HTML/MimeTypeArray.cpp +++ b/Userland/Libraries/LibWeb/HTML/MimeTypeArray.cpp @@ -24,7 +24,7 @@ MimeTypeArray::~MimeTypeArray() = default; void MimeTypeArray::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MimeTypeArray")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MimeTypeArray"_fly_string)); } // https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewing-support:support-named-properties-2 diff --git a/Userland/Libraries/LibWeb/HTML/NavigateEvent.cpp b/Userland/Libraries/LibWeb/HTML/NavigateEvent.cpp index 6948c54a23..ee1eec390d 100644 --- a/Userland/Libraries/LibWeb/HTML/NavigateEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/NavigateEvent.cpp @@ -50,7 +50,7 @@ NavigateEvent::~NavigateEvent() = default; void NavigateEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "NavigateEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "NavigateEvent"_fly_string)); } void NavigateEvent::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/Navigation.cpp b/Userland/Libraries/LibWeb/HTML/Navigation.cpp index 70cc62db67..088b4f8cea 100644 --- a/Userland/Libraries/LibWeb/HTML/Navigation.cpp +++ b/Userland/Libraries/LibWeb/HTML/Navigation.cpp @@ -75,7 +75,7 @@ Navigation::~Navigation() = default; void Navigation::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Navigation")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Navigation"_fly_string)); } void Navigation::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/NavigationCurrentEntryChangeEvent.cpp b/Userland/Libraries/LibWeb/HTML/NavigationCurrentEntryChangeEvent.cpp index e7a2cf19f5..f4884eece2 100644 --- a/Userland/Libraries/LibWeb/HTML/NavigationCurrentEntryChangeEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/NavigationCurrentEntryChangeEvent.cpp @@ -32,7 +32,7 @@ NavigationCurrentEntryChangeEvent::~NavigationCurrentEntryChangeEvent() = defaul void NavigationCurrentEntryChangeEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "NavigationCurrentEntryChangeEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "NavigationCurrentEntryChangeEvent"_fly_string)); } void NavigationCurrentEntryChangeEvent::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/NavigationDestination.cpp b/Userland/Libraries/LibWeb/HTML/NavigationDestination.cpp index b6059bf098..202eebee0f 100644 --- a/Userland/Libraries/LibWeb/HTML/NavigationDestination.cpp +++ b/Userland/Libraries/LibWeb/HTML/NavigationDestination.cpp @@ -30,7 +30,7 @@ NavigationDestination::~NavigationDestination() = default; void NavigationDestination::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "NavigationDestination")); + set_prototype(&Bindings::ensure_web_prototype(realm, "NavigationDestination"_fly_string)); } void NavigationDestination::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/NavigationHistoryEntry.cpp b/Userland/Libraries/LibWeb/HTML/NavigationHistoryEntry.cpp index 1b29a8ff93..787798c98a 100644 --- a/Userland/Libraries/LibWeb/HTML/NavigationHistoryEntry.cpp +++ b/Userland/Libraries/LibWeb/HTML/NavigationHistoryEntry.cpp @@ -34,7 +34,7 @@ NavigationHistoryEntry::~NavigationHistoryEntry() = default; void NavigationHistoryEntry::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "NavigationHistoryEntry")); + set_prototype(&Bindings::ensure_web_prototype(realm, "NavigationHistoryEntry"_fly_string)); } void NavigationHistoryEntry::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/NavigationTransition.cpp b/Userland/Libraries/LibWeb/HTML/NavigationTransition.cpp index e574fd09eb..233439ef74 100644 --- a/Userland/Libraries/LibWeb/HTML/NavigationTransition.cpp +++ b/Userland/Libraries/LibWeb/HTML/NavigationTransition.cpp @@ -34,7 +34,7 @@ NavigationTransition::~NavigationTransition() = default; void NavigationTransition::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "NavigationTransition")); + set_prototype(&Bindings::ensure_web_prototype(realm, "NavigationTransition"_fly_string)); } void NavigationTransition::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/Navigator.cpp b/Userland/Libraries/LibWeb/HTML/Navigator.cpp index 9c19f1a3dd..701007f96c 100644 --- a/Userland/Libraries/LibWeb/HTML/Navigator.cpp +++ b/Userland/Libraries/LibWeb/HTML/Navigator.cpp @@ -33,7 +33,7 @@ Navigator::~Navigator() = default; void Navigator::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Navigator")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Navigator"_fly_string)); } // https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-pdfviewerenabled diff --git a/Userland/Libraries/LibWeb/HTML/PageTransitionEvent.cpp b/Userland/Libraries/LibWeb/HTML/PageTransitionEvent.cpp index c042754b21..da408f86ad 100644 --- a/Userland/Libraries/LibWeb/HTML/PageTransitionEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/PageTransitionEvent.cpp @@ -32,7 +32,7 @@ PageTransitionEvent::~PageTransitionEvent() = default; void PageTransitionEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "PageTransitionEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "PageTransitionEvent"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/Path2D.cpp b/Userland/Libraries/LibWeb/HTML/Path2D.cpp index 44988cb331..d27cce58b0 100644 --- a/Userland/Libraries/LibWeb/HTML/Path2D.cpp +++ b/Userland/Libraries/LibWeb/HTML/Path2D.cpp @@ -61,7 +61,7 @@ Path2D::~Path2D() = default; void Path2D::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Path2D")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Path2D"_fly_string)); } // https://html.spec.whatwg.org/multipage/canvas.html#dom-path2d-addpath diff --git a/Userland/Libraries/LibWeb/HTML/Plugin.cpp b/Userland/Libraries/LibWeb/HTML/Plugin.cpp index 5237e58a33..b2187f1711 100644 --- a/Userland/Libraries/LibWeb/HTML/Plugin.cpp +++ b/Userland/Libraries/LibWeb/HTML/Plugin.cpp @@ -25,7 +25,7 @@ Plugin::~Plugin() = default; void Plugin::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Plugin")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Plugin"_fly_string)); } // https://html.spec.whatwg.org/multipage/system-state.html#dom-plugin-name diff --git a/Userland/Libraries/LibWeb/HTML/PluginArray.cpp b/Userland/Libraries/LibWeb/HTML/PluginArray.cpp index a28cd2c7cb..cb5e036361 100644 --- a/Userland/Libraries/LibWeb/HTML/PluginArray.cpp +++ b/Userland/Libraries/LibWeb/HTML/PluginArray.cpp @@ -24,7 +24,7 @@ PluginArray::~PluginArray() = default; void PluginArray::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "PluginArray")); + set_prototype(&Bindings::ensure_web_prototype(realm, "PluginArray"_fly_string)); } // https://html.spec.whatwg.org/multipage/system-state.html#dom-pluginarray-refresh diff --git a/Userland/Libraries/LibWeb/HTML/PromiseRejectionEvent.cpp b/Userland/Libraries/LibWeb/HTML/PromiseRejectionEvent.cpp index 1f6c124593..acdb915d7e 100644 --- a/Userland/Libraries/LibWeb/HTML/PromiseRejectionEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/PromiseRejectionEvent.cpp @@ -40,7 +40,7 @@ void PromiseRejectionEvent::visit_edges(Cell::Visitor& visitor) void PromiseRejectionEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "PromiseRejectionEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "PromiseRejectionEvent"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/Storage.cpp b/Userland/Libraries/LibWeb/HTML/Storage.cpp index 7c635c87b4..20ececb980 100644 --- a/Userland/Libraries/LibWeb/HTML/Storage.cpp +++ b/Userland/Libraries/LibWeb/HTML/Storage.cpp @@ -28,7 +28,7 @@ Storage::~Storage() = default; void Storage::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Storage")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Storage"_fly_string)); } // https://html.spec.whatwg.org/multipage/webstorage.html#dom-storage-length diff --git a/Userland/Libraries/LibWeb/HTML/SubmitEvent.cpp b/Userland/Libraries/LibWeb/HTML/SubmitEvent.cpp index 08907a66df..5c3a2b171c 100644 --- a/Userland/Libraries/LibWeb/HTML/SubmitEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/SubmitEvent.cpp @@ -32,7 +32,7 @@ SubmitEvent::~SubmitEvent() = default; void SubmitEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SubmitEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SubmitEvent"_fly_string)); } void SubmitEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/TextMetrics.cpp b/Userland/Libraries/LibWeb/HTML/TextMetrics.cpp index 0ae748109f..d7729bd6d3 100644 --- a/Userland/Libraries/LibWeb/HTML/TextMetrics.cpp +++ b/Userland/Libraries/LibWeb/HTML/TextMetrics.cpp @@ -27,7 +27,7 @@ TextMetrics::~TextMetrics() = default; void TextMetrics::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "TextMetrics")); + set_prototype(&Bindings::ensure_web_prototype(realm, "TextMetrics"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/TimeRanges.cpp b/Userland/Libraries/LibWeb/HTML/TimeRanges.cpp index 52aa9fcf5a..5ae17229dc 100644 --- a/Userland/Libraries/LibWeb/HTML/TimeRanges.cpp +++ b/Userland/Libraries/LibWeb/HTML/TimeRanges.cpp @@ -21,7 +21,7 @@ TimeRanges::TimeRanges(JS::Realm& realm) void TimeRanges::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "TimeRanges")); + set_prototype(&Bindings::ensure_web_prototype(realm, "TimeRanges"_fly_string)); } // https://html.spec.whatwg.org/multipage/media.html#dom-timeranges-length diff --git a/Userland/Libraries/LibWeb/HTML/ToggleEvent.cpp b/Userland/Libraries/LibWeb/HTML/ToggleEvent.cpp index 55e52b831b..e1c1f087a9 100644 --- a/Userland/Libraries/LibWeb/HTML/ToggleEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/ToggleEvent.cpp @@ -32,7 +32,7 @@ ToggleEvent::ToggleEvent(JS::Realm& realm, FlyString const& event_name, ToggleEv void ToggleEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ToggleEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ToggleEvent"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HTML/TrackEvent.cpp b/Userland/Libraries/LibWeb/HTML/TrackEvent.cpp index 40e469738f..a1f7537648 100644 --- a/Userland/Libraries/LibWeb/HTML/TrackEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/TrackEvent.cpp @@ -29,7 +29,7 @@ TrackEvent::TrackEvent(JS::Realm& realm, FlyString const& event_name, TrackEvent void TrackEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "TrackEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "TrackEvent"_fly_string)); } Variant, JS::Handle> TrackEvent::track() const diff --git a/Userland/Libraries/LibWeb/HTML/VideoTrack.cpp b/Userland/Libraries/LibWeb/HTML/VideoTrack.cpp index 6ba37eafac..9dec80409a 100644 --- a/Userland/Libraries/LibWeb/HTML/VideoTrack.cpp +++ b/Userland/Libraries/LibWeb/HTML/VideoTrack.cpp @@ -75,7 +75,7 @@ VideoTrack::~VideoTrack() void VideoTrack::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "VideoTrack")); + set_prototype(&Bindings::ensure_web_prototype(realm, "VideoTrack"_fly_string)); auto id = s_video_track_id_allocator.allocate(); m_id = MUST(String::number(id)); diff --git a/Userland/Libraries/LibWeb/HTML/VideoTrackList.cpp b/Userland/Libraries/LibWeb/HTML/VideoTrackList.cpp index 8f0deb290d..ace2faaa54 100644 --- a/Userland/Libraries/LibWeb/HTML/VideoTrackList.cpp +++ b/Userland/Libraries/LibWeb/HTML/VideoTrackList.cpp @@ -24,7 +24,7 @@ VideoTrackList::VideoTrackList(JS::Realm& realm) void VideoTrackList::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "VideoTrackList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "VideoTrackList"_fly_string)); } // https://html.spec.whatwg.org/multipage/media.html#dom-tracklist-item diff --git a/Userland/Libraries/LibWeb/HTML/Window.cpp b/Userland/Libraries/LibWeb/HTML/Window.cpp index 7b36a207b9..a4e76f8271 100644 --- a/Userland/Libraries/LibWeb/HTML/Window.cpp +++ b/Userland/Libraries/LibWeb/HTML/Window.cpp @@ -800,7 +800,7 @@ WebIDL::ExceptionOr Window::initialize_web_interfaces(Badgerealm(); add_window_exposed_interfaces(*this); - Object::set_prototype(&Bindings::ensure_web_prototype(realm, "Window")); + Object::set_prototype(&Bindings::ensure_web_prototype(realm, "Window"_fly_string)); Bindings::WindowGlobalMixin::initialize(realm, *this); WindowOrWorkerGlobalScopeMixin::initialize(realm); diff --git a/Userland/Libraries/LibWeb/HTML/Worker.cpp b/Userland/Libraries/LibWeb/HTML/Worker.cpp index 28c1fd677e..70034da7e1 100644 --- a/Userland/Libraries/LibWeb/HTML/Worker.cpp +++ b/Userland/Libraries/LibWeb/HTML/Worker.cpp @@ -30,7 +30,7 @@ Worker::Worker(String const& script_url, WorkerOptions const options, DOM::Docum void Worker::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Worker")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Worker"_fly_string)); } void Worker::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp index 4c3b11c2c1..6ce9fe4ea7 100644 --- a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp +++ b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp @@ -39,7 +39,7 @@ void WorkerGlobalScope::initialize_web_interfaces(Badge(realm, "WorkerGlobalScope")); + Object::set_prototype(&Bindings::ensure_web_prototype(realm, "WorkerGlobalScope"_fly_string)); WindowOrWorkerGlobalScopeMixin::initialize(realm); diff --git a/Userland/Libraries/LibWeb/HTML/WorkerNavigator.cpp b/Userland/Libraries/LibWeb/HTML/WorkerNavigator.cpp index 5473c9c8e5..1663e031a0 100644 --- a/Userland/Libraries/LibWeb/HTML/WorkerNavigator.cpp +++ b/Userland/Libraries/LibWeb/HTML/WorkerNavigator.cpp @@ -28,7 +28,7 @@ WorkerNavigator::~WorkerNavigator() = default; void WorkerNavigator::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "WorkerNavigator")); + set_prototype(&Bindings::ensure_web_prototype(realm, "WorkerNavigator"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/HighResolutionTime/Performance.cpp b/Userland/Libraries/LibWeb/HighResolutionTime/Performance.cpp index e346436bf9..885bb5c530 100644 --- a/Userland/Libraries/LibWeb/HighResolutionTime/Performance.cpp +++ b/Userland/Libraries/LibWeb/HighResolutionTime/Performance.cpp @@ -32,7 +32,7 @@ Performance::~Performance() = default; void Performance::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Performance")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Performance"_fly_string)); } void Performance::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Internals/Inspector.cpp b/Userland/Libraries/LibWeb/Internals/Inspector.cpp index 12783c3e9f..c84b9b740c 100644 --- a/Userland/Libraries/LibWeb/Internals/Inspector.cpp +++ b/Userland/Libraries/LibWeb/Internals/Inspector.cpp @@ -28,7 +28,7 @@ Inspector::~Inspector() = default; void Inspector::initialize(JS::Realm& realm) { Base::initialize(realm); - Object::set_prototype(&Bindings::ensure_web_prototype(realm, "Inspector")); + Object::set_prototype(&Bindings::ensure_web_prototype(realm, "Inspector"_fly_string)); } void Inspector::inspector_loaded() diff --git a/Userland/Libraries/LibWeb/Internals/Internals.cpp b/Userland/Libraries/LibWeb/Internals/Internals.cpp index e25e17b1b6..d8965a1889 100644 --- a/Userland/Libraries/LibWeb/Internals/Internals.cpp +++ b/Userland/Libraries/LibWeb/Internals/Internals.cpp @@ -30,7 +30,7 @@ Internals::~Internals() = default; void Internals::initialize(JS::Realm& realm) { Base::initialize(realm); - Object::set_prototype(&Bindings::ensure_web_prototype(realm, "Internals")); + Object::set_prototype(&Bindings::ensure_web_prototype(realm, "Internals"_fly_string)); } void Internals::signal_text_test_is_done() diff --git a/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.cpp b/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.cpp index cc0c6fb8cb..29d29c6f0d 100644 --- a/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.cpp +++ b/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserver.cpp @@ -69,7 +69,7 @@ void IntersectionObserver::finalize() void IntersectionObserver::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "IntersectionObserver")); + set_prototype(&Bindings::ensure_web_prototype(realm, "IntersectionObserver"_fly_string)); } void IntersectionObserver::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserverEntry.cpp b/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserverEntry.cpp index c6fd75503b..acf6def535 100644 --- a/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserverEntry.cpp +++ b/Userland/Libraries/LibWeb/IntersectionObserver/IntersectionObserverEntry.cpp @@ -42,7 +42,7 @@ IntersectionObserverEntry::~IntersectionObserverEntry() = default; void IntersectionObserverEntry::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "IntersectionObserverEntry")); + set_prototype(&Bindings::ensure_web_prototype(realm, "IntersectionObserverEntry"_fly_string)); } void IntersectionObserverEntry::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/MathML/MathMLElement.cpp b/Userland/Libraries/LibWeb/MathML/MathMLElement.cpp index 6c4a761f3b..06e1fb1b0c 100644 --- a/Userland/Libraries/LibWeb/MathML/MathMLElement.cpp +++ b/Userland/Libraries/LibWeb/MathML/MathMLElement.cpp @@ -22,7 +22,7 @@ MathMLElement::MathMLElement(DOM::Document& document, DOM::QualifiedName qualifi void MathMLElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MathMLElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MathMLElement"_fly_string)); m_dataset = HTML::DOMStringMap::create(*this); } diff --git a/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp b/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp index 605ab97bc7..e259b51030 100644 --- a/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp +++ b/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.cpp @@ -21,7 +21,7 @@ PerformanceTiming::~PerformanceTiming() = default; void PerformanceTiming::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceTiming")); + set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceTiming"_fly_string)); } void PerformanceTiming::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceEntry.cpp b/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceEntry.cpp index 5b2c3d4852..22872d449b 100644 --- a/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceEntry.cpp +++ b/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceEntry.cpp @@ -23,7 +23,7 @@ PerformanceEntry::~PerformanceEntry() = default; void PerformanceEntry::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceEntry")); + set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceEntry"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceObserver.cpp b/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceObserver.cpp index a7883419c3..55ca52f4f9 100644 --- a/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceObserver.cpp +++ b/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceObserver.cpp @@ -34,7 +34,7 @@ PerformanceObserver::~PerformanceObserver() = default; void PerformanceObserver::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceObserver")); + set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceObserver"_fly_string)); } void PerformanceObserver::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceObserverEntryList.cpp b/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceObserverEntryList.cpp index 4cb3d5d277..4d0fa9be66 100644 --- a/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceObserverEntryList.cpp +++ b/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceObserverEntryList.cpp @@ -26,7 +26,7 @@ PerformanceObserverEntryList::~PerformanceObserverEntryList() = default; void PerformanceObserverEntryList::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceObserverEntryList")); + set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceObserverEntryList"_fly_string)); } void PerformanceObserverEntryList::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp b/Userland/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp index d7c5cbb0c5..3f0b277264 100644 --- a/Userland/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp +++ b/Userland/Libraries/LibWeb/RequestIdleCallback/IdleDeadline.cpp @@ -28,7 +28,7 @@ IdleDeadline::IdleDeadline(JS::Realm& realm, bool did_timeout) void IdleDeadline::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "IdleDeadline")); + set_prototype(&Bindings::ensure_web_prototype(realm, "IdleDeadline"_fly_string)); } IdleDeadline::~IdleDeadline() = default; diff --git a/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.cpp b/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.cpp index 8398e14750..379bbdc3e1 100644 --- a/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.cpp +++ b/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserver.cpp @@ -30,7 +30,7 @@ ResizeObserver::~ResizeObserver() = default; void ResizeObserver::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ResizeObserver")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ResizeObserver"_fly_string)); } // https://drafts.csswg.org/resize-observer/#dom-resizeobserver-observe diff --git a/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.cpp b/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.cpp index 730ac0af60..7415dfd8f7 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGAnimatedLength.cpp @@ -30,7 +30,7 @@ SVGAnimatedLength::~SVGAnimatedLength() = default; void SVGAnimatedLength::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGAnimatedLength")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGAnimatedLength"_fly_string)); } void SVGAnimatedLength::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp b/Userland/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp index 2213809890..4107b84a6a 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGAnimatedNumber.cpp @@ -28,7 +28,7 @@ SVGAnimatedNumber::~SVGAnimatedNumber() = default; void SVGAnimatedNumber::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGAnimatedNumber")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGAnimatedNumber"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/SVG/SVGCircleElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGCircleElement.cpp index 30aa0d39d1..7e1f1cbb73 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGCircleElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGCircleElement.cpp @@ -21,7 +21,7 @@ SVGCircleElement::SVGCircleElement(DOM::Document& document, DOM::QualifiedName q void SVGCircleElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGCircleElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGCircleElement"_fly_string)); } void SVGCircleElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/SVG/SVGClipPathElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGClipPathElement.cpp index 9813ed5123..a9d61e3d77 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGClipPathElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGClipPathElement.cpp @@ -23,7 +23,7 @@ SVGClipPathElement::~SVGClipPathElement() void SVGClipPathElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGClipPathElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGClipPathElement"_fly_string)); } JS::GCPtr SVGClipPathElement::create_layout_node(NonnullRefPtr) diff --git a/Userland/Libraries/LibWeb/SVG/SVGDefsElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGDefsElement.cpp index c1d026ca9a..989728826e 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGDefsElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGDefsElement.cpp @@ -24,7 +24,7 @@ SVGDefsElement::~SVGDefsElement() void SVGDefsElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGDefsElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGDefsElement"_fly_string)); } JS::GCPtr SVGDefsElement::create_layout_node(NonnullRefPtr style) diff --git a/Userland/Libraries/LibWeb/SVG/SVGElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGElement.cpp index d8d74cc0f4..4d0d1904e4 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGElement.cpp @@ -23,7 +23,7 @@ SVGElement::SVGElement(DOM::Document& document, DOM::QualifiedName qualified_nam void SVGElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGElement"_fly_string)); m_dataset = HTML::DOMStringMap::create(*this); } diff --git a/Userland/Libraries/LibWeb/SVG/SVGEllipseElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGEllipseElement.cpp index 1b85b6eb64..d5dd6c9c6d 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGEllipseElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGEllipseElement.cpp @@ -21,7 +21,7 @@ SVGEllipseElement::SVGEllipseElement(DOM::Document& document, DOM::QualifiedName void SVGEllipseElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGEllipseElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGEllipseElement"_fly_string)); } void SVGEllipseElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/SVG/SVGForeignObjectElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGForeignObjectElement.cpp index 09e83afd14..c3f84c0390 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGForeignObjectElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGForeignObjectElement.cpp @@ -27,7 +27,7 @@ SVGForeignObjectElement::~SVGForeignObjectElement() = default; void SVGForeignObjectElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGForeignObjectElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGForeignObjectElement"_fly_string)); // FIXME: These never actually get updated! m_x = SVGAnimatedLength::create(realm, SVGLength::create(realm, 0, 0), SVGLength::create(realm, 0, 0)); diff --git a/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp index 6e3979d736..6d79637815 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp @@ -18,7 +18,7 @@ SVGGeometryElement::SVGGeometryElement(DOM::Document& document, DOM::QualifiedNa void SVGGeometryElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGGeometryElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGGeometryElement"_fly_string)); } JS::GCPtr SVGGeometryElement::create_layout_node(NonnullRefPtr style) diff --git a/Userland/Libraries/LibWeb/SVG/SVGGradientElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGGradientElement.cpp index 7efcd45688..1ab9c7d88d 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGGradientElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGGradientElement.cpp @@ -113,7 +113,7 @@ JS::GCPtr SVGGradientElement::linked_gradient() const void SVGGradientElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGGradientElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGGradientElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp index a0bcbb9c25..28ce394b41 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGGraphicsElement.cpp @@ -29,7 +29,7 @@ SVGGraphicsElement::SVGGraphicsElement(DOM::Document& document, DOM::QualifiedNa void SVGGraphicsElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGGraphicsElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGGraphicsElement"_fly_string)); } void SVGGraphicsElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/SVG/SVGLength.cpp b/Userland/Libraries/LibWeb/SVG/SVGLength.cpp index 499db9868e..d5671444e3 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGLength.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGLength.cpp @@ -26,7 +26,7 @@ SVGLength::SVGLength(JS::Realm& realm, u8 unit_type, float value) void SVGLength::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGLength")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGLength"_fly_string)); } SVGLength::~SVGLength() = default; diff --git a/Userland/Libraries/LibWeb/SVG/SVGLineElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGLineElement.cpp index 227b9df6bd..1647599e98 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGLineElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGLineElement.cpp @@ -21,7 +21,7 @@ SVGLineElement::SVGLineElement(DOM::Document& document, DOM::QualifiedName quali void SVGLineElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGLineElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGLineElement"_fly_string)); } void SVGLineElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/SVG/SVGLinearGradientElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGLinearGradientElement.cpp index c9e2b35217..aa610176a2 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGLinearGradientElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGLinearGradientElement.cpp @@ -23,7 +23,7 @@ SVGLinearGradientElement::SVGLinearGradientElement(DOM::Document& document, DOM: void SVGLinearGradientElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGLinearGradientElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGLinearGradientElement"_fly_string)); } void SVGLinearGradientElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/SVG/SVGMaskElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGMaskElement.cpp index dd3277e2a7..f99f443c6e 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGMaskElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGMaskElement.cpp @@ -25,7 +25,7 @@ SVGMaskElement::~SVGMaskElement() = default; void SVGMaskElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGMaskElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGMaskElement"_fly_string)); } JS::GCPtr SVGMaskElement::create_layout_node(NonnullRefPtr style) diff --git a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp index 76965ef90c..6858badda3 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGPathElement.cpp @@ -92,7 +92,7 @@ SVGPathElement::SVGPathElement(DOM::Document& document, DOM::QualifiedName quali void SVGPathElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGPathElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGPathElement"_fly_string)); } void SVGPathElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/SVG/SVGPolygonElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGPolygonElement.cpp index 6a9b799ce0..69172f7211 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGPolygonElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGPolygonElement.cpp @@ -21,7 +21,7 @@ SVGPolygonElement::SVGPolygonElement(DOM::Document& document, DOM::QualifiedName void SVGPolygonElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGPolygonElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGPolygonElement"_fly_string)); } void SVGPolygonElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.cpp index 17669f0699..c6644366da 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.cpp @@ -21,7 +21,7 @@ SVGPolylineElement::SVGPolylineElement(DOM::Document& document, DOM::QualifiedNa void SVGPolylineElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGPolylineElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGPolylineElement"_fly_string)); } void SVGPolylineElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp index ac42c4b031..98d1c4f3e8 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGRadialGradientElement.cpp @@ -20,7 +20,7 @@ SVGRadialGradientElement::SVGRadialGradientElement(DOM::Document& document, DOM: void SVGRadialGradientElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGRadialGradientElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGRadialGradientElement"_fly_string)); } void SVGRadialGradientElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/SVG/SVGRectElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGRectElement.cpp index a18f9509a5..03967661f7 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGRectElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGRectElement.cpp @@ -23,7 +23,7 @@ SVGRectElement::SVGRectElement(DOM::Document& document, DOM::QualifiedName quali void SVGRectElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGRectElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGRectElement"_fly_string)); } void SVGRectElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp index c8f3afc885..ce3ff6489f 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGSVGElement.cpp @@ -28,7 +28,7 @@ SVGSVGElement::SVGSVGElement(DOM::Document& document, DOM::QualifiedName qualifi void SVGSVGElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGSVGElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGSVGElement"_fly_string)); } JS::GCPtr SVGSVGElement::create_layout_node(NonnullRefPtr style) diff --git a/Userland/Libraries/LibWeb/SVG/SVGScriptElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGScriptElement.cpp index e063caa5d3..3fa1d6aac5 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGScriptElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGScriptElement.cpp @@ -21,7 +21,7 @@ SVGScriptElement::SVGScriptElement(DOM::Document& document, DOM::QualifiedName q void SVGScriptElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGScriptElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGScriptElement"_fly_string)); } void SVGScriptElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/SVG/SVGStopElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGStopElement.cpp index 4e27d3c84d..1ebc6278ca 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGStopElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGStopElement.cpp @@ -68,7 +68,7 @@ JS::NonnullGCPtr SVGStopElement::offset() const void SVGStopElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGStopElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGStopElement"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/SVG/SVGStyleElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGStyleElement.cpp index df2880305d..5817156eaa 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGStyleElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGStyleElement.cpp @@ -20,7 +20,7 @@ SVGStyleElement::~SVGStyleElement() = default; void SVGStyleElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGStyleElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGStyleElement"_fly_string)); } void SVGStyleElement::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/SVG/SVGSymbolElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGSymbolElement.cpp index f9ae07f692..f9c5ae9c1a 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGSymbolElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGSymbolElement.cpp @@ -27,7 +27,7 @@ SVGSymbolElement::SVGSymbolElement(DOM::Document& document, DOM::QualifiedName q void SVGSymbolElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGSymbolElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGSymbolElement"_fly_string)); } // https://svgwg.org/svg2-draft/struct.html#SymbolNotes diff --git a/Userland/Libraries/LibWeb/SVG/SVGTSpanElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGTSpanElement.cpp index ed264dbdba..c11504b28b 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGTSpanElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGTSpanElement.cpp @@ -20,7 +20,7 @@ SVGTSpanElement::SVGTSpanElement(DOM::Document& document, DOM::QualifiedName qua void SVGTSpanElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGTSpanElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGTSpanElement"_fly_string)); } JS::GCPtr SVGTSpanElement::create_layout_node(NonnullRefPtr style) diff --git a/Userland/Libraries/LibWeb/SVG/SVGTextContentElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGTextContentElement.cpp index 4d957f5017..df177aaf1e 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGTextContentElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGTextContentElement.cpp @@ -26,7 +26,7 @@ SVGTextContentElement::SVGTextContentElement(DOM::Document& document, DOM::Quali void SVGTextContentElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGTextContentElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGTextContentElement"_fly_string)); } Optional SVGTextContentElement::text_anchor() const diff --git a/Userland/Libraries/LibWeb/SVG/SVGTextElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGTextElement.cpp index f555a2fd29..af76a7bc6e 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGTextElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGTextElement.cpp @@ -19,7 +19,7 @@ SVGTextElement::SVGTextElement(DOM::Document& document, DOM::QualifiedName quali void SVGTextElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGTextElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGTextElement"_fly_string)); } JS::GCPtr SVGTextElement::create_layout_node(NonnullRefPtr style) diff --git a/Userland/Libraries/LibWeb/SVG/SVGTextPositioningElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGTextPositioningElement.cpp index abbfeaf807..58a2c298cd 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGTextPositioningElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGTextPositioningElement.cpp @@ -25,7 +25,7 @@ SVGTextPositioningElement::SVGTextPositioningElement(DOM::Document& document, DO void SVGTextPositioningElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGTextPositioningElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGTextPositioningElement"_fly_string)); } void SVGTextPositioningElement::attribute_changed(FlyString const& name, Optional const& value) diff --git a/Userland/Libraries/LibWeb/SVG/SVGTitleElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGTitleElement.cpp index 79d4df0447..2cf837b40a 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGTitleElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGTitleElement.cpp @@ -21,7 +21,7 @@ SVGTitleElement::SVGTitleElement(DOM::Document& document, DOM::QualifiedName qua void SVGTitleElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGTitleElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGTitleElement"_fly_string)); } JS::GCPtr SVGTitleElement::create_layout_node(NonnullRefPtr) diff --git a/Userland/Libraries/LibWeb/SVG/SVGUseElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGUseElement.cpp index 26c3e52fe3..c829bf480d 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGUseElement.cpp +++ b/Userland/Libraries/LibWeb/SVG/SVGUseElement.cpp @@ -27,7 +27,7 @@ SVGUseElement::SVGUseElement(DOM::Document& document, DOM::QualifiedName qualifi void SVGUseElement::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "SVGUseElement")); + set_prototype(&Bindings::ensure_web_prototype(realm, "SVGUseElement"_fly_string)); // The shadow tree is open (inspectable by script), but read-only. auto shadow_root = heap().allocate(realm, document(), *this, Bindings::ShadowRootMode::Open); diff --git a/Userland/Libraries/LibWeb/Selection/Selection.cpp b/Userland/Libraries/LibWeb/Selection/Selection.cpp index 6a1f6dd61d..bf90fbe610 100644 --- a/Userland/Libraries/LibWeb/Selection/Selection.cpp +++ b/Userland/Libraries/LibWeb/Selection/Selection.cpp @@ -29,7 +29,7 @@ Selection::~Selection() = default; void Selection::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "Selection")); + set_prototype(&Bindings::ensure_web_prototype(realm, "Selection"_fly_string)); } // https://w3c.github.io/selection-api/#dfn-empty diff --git a/Userland/Libraries/LibWeb/Streams/ByteLengthQueuingStrategy.cpp b/Userland/Libraries/LibWeb/Streams/ByteLengthQueuingStrategy.cpp index 641a7efa09..986da72410 100644 --- a/Userland/Libraries/LibWeb/Streams/ByteLengthQueuingStrategy.cpp +++ b/Userland/Libraries/LibWeb/Streams/ByteLengthQueuingStrategy.cpp @@ -41,7 +41,7 @@ WebIDL::ExceptionOr> ByteLengthQueuingStr void ByteLengthQueuingStrategy::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ByteLengthQueuingStrategy")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ByteLengthQueuingStrategy"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/Streams/CountQueuingStrategy.cpp b/Userland/Libraries/LibWeb/Streams/CountQueuingStrategy.cpp index 3b851ee22e..39824f0d73 100644 --- a/Userland/Libraries/LibWeb/Streams/CountQueuingStrategy.cpp +++ b/Userland/Libraries/LibWeb/Streams/CountQueuingStrategy.cpp @@ -41,7 +41,7 @@ WebIDL::ExceptionOr> CountQueuingStrategy void CountQueuingStrategy::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "CountQueuingStrategy")); + set_prototype(&Bindings::ensure_web_prototype(realm, "CountQueuingStrategy"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/Streams/ReadableStream.cpp b/Userland/Libraries/LibWeb/Streams/ReadableStream.cpp index 1d46bcacdb..2d8b4f2363 100644 --- a/Userland/Libraries/LibWeb/Streams/ReadableStream.cpp +++ b/Userland/Libraries/LibWeb/Streams/ReadableStream.cpp @@ -111,7 +111,7 @@ WebIDL::ExceptionOr ReadableStream::get_reader(ReadableStr void ReadableStream::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ReadableStream")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ReadableStream"_fly_string)); } void ReadableStream::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBReader.cpp b/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBReader.cpp index cfcac0d989..e55144515e 100644 --- a/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBReader.cpp +++ b/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBReader.cpp @@ -27,7 +27,7 @@ ReadableStreamBYOBReader::ReadableStreamBYOBReader(JS::Realm& realm) void ReadableStreamBYOBReader::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ReadableStreamBYOBReader")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ReadableStreamBYOBReader"_fly_string)); } // https://streams.spec.whatwg.org/#byob-reader-constructor diff --git a/Userland/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp b/Userland/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp index b3f4424937..3ddb67feab 100644 --- a/Userland/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp +++ b/Userland/Libraries/LibWeb/Streams/ReadableStreamDefaultController.cpp @@ -129,7 +129,7 @@ WebIDL::ExceptionOr ReadableStreamDefaultController::release_steps() void ReadableStreamDefaultController::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ReadableStreamDefaultController")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ReadableStreamDefaultController"_fly_string)); } void ReadableStreamDefaultController::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Streams/ReadableStreamDefaultReader.cpp b/Userland/Libraries/LibWeb/Streams/ReadableStreamDefaultReader.cpp index 162e7b4935..36233c548a 100644 --- a/Userland/Libraries/LibWeb/Streams/ReadableStreamDefaultReader.cpp +++ b/Userland/Libraries/LibWeb/Streams/ReadableStreamDefaultReader.cpp @@ -52,7 +52,7 @@ ReadableStreamDefaultReader::ReadableStreamDefaultReader(JS::Realm& realm) void ReadableStreamDefaultReader::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ReadableStreamDefaultReader")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ReadableStreamDefaultReader"_fly_string)); } void ReadableStreamDefaultReader::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Streams/TransformStream.cpp b/Userland/Libraries/LibWeb/Streams/TransformStream.cpp index 63ca15df21..253ab20a86 100644 --- a/Userland/Libraries/LibWeb/Streams/TransformStream.cpp +++ b/Userland/Libraries/LibWeb/Streams/TransformStream.cpp @@ -84,7 +84,7 @@ TransformStream::~TransformStream() = default; void TransformStream::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "TransformStream")); + set_prototype(&Bindings::ensure_web_prototype(realm, "TransformStream"_fly_string)); } void TransformStream::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Streams/TransformStreamDefaultController.cpp b/Userland/Libraries/LibWeb/Streams/TransformStreamDefaultController.cpp index 6351807c6a..ebd7a3a254 100644 --- a/Userland/Libraries/LibWeb/Streams/TransformStreamDefaultController.cpp +++ b/Userland/Libraries/LibWeb/Streams/TransformStreamDefaultController.cpp @@ -22,7 +22,7 @@ TransformStreamDefaultController::~TransformStreamDefaultController() = default; void TransformStreamDefaultController::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "TransformStreamDefaultController")); + set_prototype(&Bindings::ensure_web_prototype(realm, "TransformStreamDefaultController"_fly_string)); } void TransformStreamDefaultController::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Streams/WritableStream.cpp b/Userland/Libraries/LibWeb/Streams/WritableStream.cpp index ca5b6166ed..b433deb9f8 100644 --- a/Userland/Libraries/LibWeb/Streams/WritableStream.cpp +++ b/Userland/Libraries/LibWeb/Streams/WritableStream.cpp @@ -108,7 +108,7 @@ WritableStream::WritableStream(JS::Realm& realm) void WritableStream::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "WritableStream")); + set_prototype(&Bindings::ensure_web_prototype(realm, "WritableStream"_fly_string)); } void WritableStream::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/Streams/WritableStreamDefaultWriter.cpp b/Userland/Libraries/LibWeb/Streams/WritableStreamDefaultWriter.cpp index 8836196047..574900edd8 100644 --- a/Userland/Libraries/LibWeb/Streams/WritableStreamDefaultWriter.cpp +++ b/Userland/Libraries/LibWeb/Streams/WritableStreamDefaultWriter.cpp @@ -128,7 +128,7 @@ WritableStreamDefaultWriter::WritableStreamDefaultWriter(JS::Realm& realm) void WritableStreamDefaultWriter::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "WritableStreamDefaultWriter")); + set_prototype(&Bindings::ensure_web_prototype(realm, "WritableStreamDefaultWriter"_fly_string)); } void WritableStreamDefaultWriter::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/UIEvents/FocusEvent.cpp b/Userland/Libraries/LibWeb/UIEvents/FocusEvent.cpp index 121d62f1e2..6659dc803a 100644 --- a/Userland/Libraries/LibWeb/UIEvents/FocusEvent.cpp +++ b/Userland/Libraries/LibWeb/UIEvents/FocusEvent.cpp @@ -27,7 +27,7 @@ FocusEvent::~FocusEvent() = default; void FocusEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "FocusEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "FocusEvent"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/UIEvents/KeyboardEvent.cpp b/Userland/Libraries/LibWeb/UIEvents/KeyboardEvent.cpp index ee516f15de..d745d63907 100644 --- a/Userland/Libraries/LibWeb/UIEvents/KeyboardEvent.cpp +++ b/Userland/Libraries/LibWeb/UIEvents/KeyboardEvent.cpp @@ -573,7 +573,7 @@ KeyboardEvent::~KeyboardEvent() = default; void KeyboardEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "KeyboardEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "KeyboardEvent"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp b/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp index 7c781c8aba..4df07e436f 100644 --- a/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp +++ b/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp @@ -43,7 +43,7 @@ MouseEvent::~MouseEvent() = default; void MouseEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "MouseEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "MouseEvent"_fly_string)); } // https://www.w3.org/TR/uievents/#dom-mouseevent-button diff --git a/Userland/Libraries/LibWeb/UIEvents/UIEvent.cpp b/Userland/Libraries/LibWeb/UIEvents/UIEvent.cpp index 4f3b1c9bfa..dc53e963e2 100644 --- a/Userland/Libraries/LibWeb/UIEvents/UIEvent.cpp +++ b/Userland/Libraries/LibWeb/UIEvents/UIEvent.cpp @@ -38,7 +38,7 @@ UIEvent::~UIEvent() = default; void UIEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "UIEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "UIEvent"_fly_string)); } void UIEvent::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/UIEvents/WheelEvent.cpp b/Userland/Libraries/LibWeb/UIEvents/WheelEvent.cpp index 2d665ccbc1..c962b46504 100644 --- a/Userland/Libraries/LibWeb/UIEvents/WheelEvent.cpp +++ b/Userland/Libraries/LibWeb/UIEvents/WheelEvent.cpp @@ -28,7 +28,7 @@ WheelEvent::~WheelEvent() = default; void WheelEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "WheelEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "WheelEvent"_fly_string)); } JS::NonnullGCPtr WheelEvent::create(JS::Realm& realm, FlyString const& event_name, WheelEventInit const& event_init, double page_x, double page_y, double offset_x, double offset_y, unsigned modifiers) diff --git a/Userland/Libraries/LibWeb/URL/URL.cpp b/Userland/Libraries/LibWeb/URL/URL.cpp index 3db2e884f6..951bca4023 100644 --- a/Userland/Libraries/LibWeb/URL/URL.cpp +++ b/Userland/Libraries/LibWeb/URL/URL.cpp @@ -87,7 +87,7 @@ URL::~URL() = default; void URL::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "URL")); + set_prototype(&Bindings::ensure_web_prototype(realm, "URL"_fly_string)); } void URL::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/URL/URLSearchParams.cpp b/Userland/Libraries/LibWeb/URL/URLSearchParams.cpp index 0f1c6d392c..00605a93b6 100644 --- a/Userland/Libraries/LibWeb/URL/URLSearchParams.cpp +++ b/Userland/Libraries/LibWeb/URL/URLSearchParams.cpp @@ -30,7 +30,7 @@ URLSearchParams::~URLSearchParams() = default; void URLSearchParams::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "URLSearchParams")); + set_prototype(&Bindings::ensure_web_prototype(realm, "URLSearchParams"_fly_string)); } void URLSearchParams::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp b/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp index 035ab95970..6501e5155b 100644 --- a/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp +++ b/Userland/Libraries/LibWeb/URL/URLSearchParamsIterator.cpp @@ -16,7 +16,7 @@ template<> void Intrinsics::create_web_prototype_and_constructor(JS::Realm& realm) { auto prototype = heap().allocate(realm, realm); - m_prototypes.set("URLSearchParamsIterator"sv, prototype); + m_prototypes.set("URLSearchParamsIterator"_fly_string, prototype); } } @@ -42,7 +42,7 @@ URLSearchParamsIterator::~URLSearchParamsIterator() = default; void URLSearchParamsIterator::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "URLSearchParamsIterator")); + set_prototype(&Bindings::ensure_web_prototype(realm, "URLSearchParamsIterator"_fly_string)); } void URLSearchParamsIterator::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/UserTiming/PerformanceMark.cpp b/Userland/Libraries/LibWeb/UserTiming/PerformanceMark.cpp index efbdd1e264..8aafdc12db 100644 --- a/Userland/Libraries/LibWeb/UserTiming/PerformanceMark.cpp +++ b/Userland/Libraries/LibWeb/UserTiming/PerformanceMark.cpp @@ -101,7 +101,7 @@ FlyString const& PerformanceMark::entry_type() const void PerformanceMark::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceMark")); + set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceMark"_fly_string)); } void PerformanceMark::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/UserTiming/PerformanceMeasure.cpp b/Userland/Libraries/LibWeb/UserTiming/PerformanceMeasure.cpp index 710c9b370c..a8c5918f1e 100644 --- a/Userland/Libraries/LibWeb/UserTiming/PerformanceMeasure.cpp +++ b/Userland/Libraries/LibWeb/UserTiming/PerformanceMeasure.cpp @@ -39,7 +39,7 @@ FlyString const& PerformanceMeasure::entry_type() const void PerformanceMeasure::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceMeasure")); + set_prototype(&Bindings::ensure_web_prototype(realm, "PerformanceMeasure"_fly_string)); } void PerformanceMeasure::visit_edges(JS::Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/WebAssembly/Instance.cpp b/Userland/Libraries/LibWeb/WebAssembly/Instance.cpp index 2222582368..d2178f86d6 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/Instance.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/Instance.cpp @@ -45,7 +45,7 @@ void Instance::initialize(JS::Realm& realm) auto& vm = this->vm(); Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "WebAssembly.Instance"sv)); + set_prototype(&Bindings::ensure_web_prototype(realm, "WebAssembly.Instance"_fly_string)); auto& instance = *Detail::s_instantiated_modules[m_index]; auto& cache = Detail::s_module_caches.at(m_index); diff --git a/Userland/Libraries/LibWeb/WebAssembly/Memory.cpp b/Userland/Libraries/LibWeb/WebAssembly/Memory.cpp index 66b92b636e..0292f96352 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/Memory.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/Memory.cpp @@ -44,7 +44,7 @@ Memory::Memory(JS::Realm& realm, Wasm::MemoryAddress address) void Memory::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "WebAssembly.Memory"sv)); + set_prototype(&Bindings::ensure_web_prototype(realm, "WebAssembly.Memory"_fly_string)); } // https://webassembly.github.io/spec/js-api/#dom-memory-grow diff --git a/Userland/Libraries/LibWeb/WebAssembly/Module.cpp b/Userland/Libraries/LibWeb/WebAssembly/Module.cpp index 45e3742442..fda278574c 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/Module.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/Module.cpp @@ -34,7 +34,7 @@ Module::Module(JS::Realm& realm, size_t index) void Module::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "WebAssembly.Module"sv)); + set_prototype(&Bindings::ensure_web_prototype(realm, "WebAssembly.Module"_fly_string)); } Wasm::Module const& Module::module() const diff --git a/Userland/Libraries/LibWeb/WebAssembly/Table.cpp b/Userland/Libraries/LibWeb/WebAssembly/Table.cpp index 631041c437..15d4df725d 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/Table.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/Table.cpp @@ -66,7 +66,7 @@ Table::Table(JS::Realm& realm, Wasm::TableAddress address) void Table::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "WebAssembly.Table"sv)); + set_prototype(&Bindings::ensure_web_prototype(realm, "WebAssembly.Table"_fly_string)); } // https://webassembly.github.io/spec/js-api/#dom-table-grow diff --git a/Userland/Libraries/LibWeb/WebAudio/AudioContext.cpp b/Userland/Libraries/LibWeb/WebAudio/AudioContext.cpp index 7efec8c8db..6d0f24c6cc 100644 --- a/Userland/Libraries/LibWeb/WebAudio/AudioContext.cpp +++ b/Userland/Libraries/LibWeb/WebAudio/AudioContext.cpp @@ -84,7 +84,7 @@ AudioContext::~AudioContext() = default; void AudioContext::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "AudioContext")); + set_prototype(&Bindings::ensure_web_prototype(realm, "AudioContext"_fly_string)); } void AudioContext::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp b/Userland/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp index d6e3da2dcc..eeaab2a2f9 100644 --- a/Userland/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp +++ b/Userland/Libraries/LibWeb/WebAudio/BaseAudioContext.cpp @@ -20,7 +20,7 @@ BaseAudioContext::~BaseAudioContext() = default; void BaseAudioContext::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "BaseAudioContext")); + set_prototype(&Bindings::ensure_web_prototype(realm, "BaseAudioContext"_fly_string)); } void BaseAudioContext::set_onstatechange(WebIDL::CallbackType* event_handler) diff --git a/Userland/Libraries/LibWeb/WebGL/WebGLContextEvent.cpp b/Userland/Libraries/LibWeb/WebGL/WebGLContextEvent.cpp index 6716ca2bf3..ad338aac54 100644 --- a/Userland/Libraries/LibWeb/WebGL/WebGLContextEvent.cpp +++ b/Userland/Libraries/LibWeb/WebGL/WebGLContextEvent.cpp @@ -32,7 +32,7 @@ WebGLContextEvent::~WebGLContextEvent() = default; void WebGLContextEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "WebGLContextEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "WebGLContextEvent"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContext.cpp b/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContext.cpp index 2596ce27b7..afeef838dd 100644 --- a/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContext.cpp +++ b/Userland/Libraries/LibWeb/WebGL/WebGLRenderingContext.cpp @@ -62,7 +62,7 @@ WebGLRenderingContext::~WebGLRenderingContext() = default; void WebGLRenderingContext::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "WebGLRenderingContext")); + set_prototype(&Bindings::ensure_web_prototype(realm, "WebGLRenderingContext"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp b/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp index 79f44d2aef..406538d589 100644 --- a/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp +++ b/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp @@ -33,7 +33,7 @@ DOMException::~DOMException() = default; void DOMException::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "DOMException")); + set_prototype(&Bindings::ensure_web_prototype(realm, "DOMException"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp b/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp index 620aba912f..089eddf865 100644 --- a/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp +++ b/Userland/Libraries/LibWeb/WebSockets/WebSocket.cpp @@ -134,7 +134,7 @@ WebSocket::~WebSocket() = default; void WebSocket::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "WebSocket")); + set_prototype(&Bindings::ensure_web_prototype(realm, "WebSocket"_fly_string)); } ErrorOr WebSocket::establish_web_socket_connection(AK::URL& url_record, Vector& protocols, HTML::EnvironmentSettingsObject& client) diff --git a/Userland/Libraries/LibWeb/XHR/FormData.cpp b/Userland/Libraries/LibWeb/XHR/FormData.cpp index d9bd3f79b9..4365b3d814 100644 --- a/Userland/Libraries/LibWeb/XHR/FormData.cpp +++ b/Userland/Libraries/LibWeb/XHR/FormData.cpp @@ -51,7 +51,7 @@ FormData::~FormData() = default; void FormData::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "FormData")); + set_prototype(&Bindings::ensure_web_prototype(realm, "FormData"_fly_string)); } // https://xhr.spec.whatwg.org/#dom-formdata-append diff --git a/Userland/Libraries/LibWeb/XHR/FormDataIterator.cpp b/Userland/Libraries/LibWeb/XHR/FormDataIterator.cpp index 145a26ee75..26aa889275 100644 --- a/Userland/Libraries/LibWeb/XHR/FormDataIterator.cpp +++ b/Userland/Libraries/LibWeb/XHR/FormDataIterator.cpp @@ -16,7 +16,7 @@ template<> void Intrinsics::create_web_prototype_and_constructor(JS::Realm& realm) { auto prototype = heap().allocate(realm, realm); - m_prototypes.set("FormDataIterator"sv, prototype); + m_prototypes.set("FormDataIterator"_fly_string, prototype); } } @@ -42,7 +42,7 @@ FormDataIterator::~FormDataIterator() = default; void FormDataIterator::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "FormDataIterator")); + set_prototype(&Bindings::ensure_web_prototype(realm, "FormDataIterator"_fly_string)); } void FormDataIterator::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/XHR/ProgressEvent.cpp b/Userland/Libraries/LibWeb/XHR/ProgressEvent.cpp index 009a044598..33808774d7 100644 --- a/Userland/Libraries/LibWeb/XHR/ProgressEvent.cpp +++ b/Userland/Libraries/LibWeb/XHR/ProgressEvent.cpp @@ -34,7 +34,7 @@ ProgressEvent::~ProgressEvent() = default; void ProgressEvent::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "ProgressEvent")); + set_prototype(&Bindings::ensure_web_prototype(realm, "ProgressEvent"_fly_string)); } } diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp index 2d644223bb..8e32b304e5 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp @@ -80,7 +80,7 @@ XMLHttpRequest::~XMLHttpRequest() = default; void XMLHttpRequest::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "XMLHttpRequest")); + set_prototype(&Bindings::ensure_web_prototype(realm, "XMLHttpRequest"_fly_string)); } void XMLHttpRequest::visit_edges(Cell::Visitor& visitor) diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequestUpload.cpp b/Userland/Libraries/LibWeb/XHR/XMLHttpRequestUpload.cpp index 901fb638a2..df81985ab9 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequestUpload.cpp +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequestUpload.cpp @@ -22,7 +22,7 @@ XMLHttpRequestUpload::~XMLHttpRequestUpload() = default; void XMLHttpRequestUpload::initialize(JS::Realm& realm) { Base::initialize(realm); - set_prototype(&Bindings::ensure_web_prototype(realm, "XMLHttpRequestUpload")); + set_prototype(&Bindings::ensure_web_prototype(realm, "XMLHttpRequestUpload"_fly_string)); } }