diff options
Diffstat (limited to 'Userland/Libraries/LibWeb')
20 files changed, 20 insertions, 20 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp index 54ef788791..775ff6d773 100644 --- a/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp +++ b/Userland/Libraries/LibWeb/Bindings/AudioConstructor.cpp @@ -15,7 +15,7 @@ namespace Web::Bindings { AudioConstructor::AudioConstructor(JS::Realm& realm) - : NativeFunction(*realm.global_object().function_prototype()) + : NativeFunction(*realm.intrinsics().function_prototype()) { } diff --git a/Userland/Libraries/LibWeb/Bindings/CSSNamespace.cpp b/Userland/Libraries/LibWeb/Bindings/CSSNamespace.cpp index 55a3955265..97f9c4b8b5 100644 --- a/Userland/Libraries/LibWeb/Bindings/CSSNamespace.cpp +++ b/Userland/Libraries/LibWeb/Bindings/CSSNamespace.cpp @@ -14,7 +14,7 @@ namespace Web::Bindings { CSSNamespace::CSSNamespace(JS::Realm& realm) - : JS::Object(*realm.global_object().object_prototype()) + : JS::Object(*realm.intrinsics().object_prototype()) { } diff --git a/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.cpp b/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.cpp index c161fea585..ebcc9a890f 100644 --- a/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.cpp +++ b/Userland/Libraries/LibWeb/Bindings/EventListenerWrapper.cpp @@ -13,7 +13,7 @@ namespace Web { namespace Bindings { EventListenerWrapper::EventListenerWrapper(JS::Realm& realm, DOM::IDLEventListener& impl) - : Wrapper(*realm.global_object().object_prototype()) + : Wrapper(*realm.intrinsics().object_prototype()) , m_impl(impl) { } diff --git a/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp index 7c2810aff6..772daf0f24 100644 --- a/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp +++ b/Userland/Libraries/LibWeb/Bindings/ImageConstructor.cpp @@ -15,7 +15,7 @@ namespace Web::Bindings { ImageConstructor::ImageConstructor(JS::Realm& realm) - : NativeFunction(*realm.global_object().function_prototype()) + : NativeFunction(*realm.intrinsics().function_prototype()) { } diff --git a/Userland/Libraries/LibWeb/Bindings/LocationConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/LocationConstructor.cpp index 94aa81905f..774fbfed70 100644 --- a/Userland/Libraries/LibWeb/Bindings/LocationConstructor.cpp +++ b/Userland/Libraries/LibWeb/Bindings/LocationConstructor.cpp @@ -12,7 +12,7 @@ namespace Web::Bindings { LocationConstructor::LocationConstructor(JS::Realm& realm) - : NativeFunction(*realm.global_object().function_prototype()) + : NativeFunction(*realm.intrinsics().function_prototype()) { } diff --git a/Userland/Libraries/LibWeb/Bindings/LocationPrototype.h b/Userland/Libraries/LibWeb/Bindings/LocationPrototype.h index cc597d0ac4..52ed45fe8d 100644 --- a/Userland/Libraries/LibWeb/Bindings/LocationPrototype.h +++ b/Userland/Libraries/LibWeb/Bindings/LocationPrototype.h @@ -19,7 +19,7 @@ class LocationPrototype final : public JS::Object { public: explicit LocationPrototype(JS::Realm& realm) - : JS::Object(*realm.global_object().object_prototype()) + : JS::Object(*realm.intrinsics().object_prototype()) { } }; diff --git a/Userland/Libraries/LibWeb/Bindings/NavigatorConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/NavigatorConstructor.cpp index 92b897893e..8a1b13e22f 100644 --- a/Userland/Libraries/LibWeb/Bindings/NavigatorConstructor.cpp +++ b/Userland/Libraries/LibWeb/Bindings/NavigatorConstructor.cpp @@ -12,7 +12,7 @@ namespace Web::Bindings { NavigatorConstructor::NavigatorConstructor(JS::Realm& realm) - : NativeFunction(*realm.global_object().function_prototype()) + : NativeFunction(*realm.intrinsics().function_prototype()) { } diff --git a/Userland/Libraries/LibWeb/Bindings/NavigatorPrototype.h b/Userland/Libraries/LibWeb/Bindings/NavigatorPrototype.h index c94aa13e60..32eb17d619 100644 --- a/Userland/Libraries/LibWeb/Bindings/NavigatorPrototype.h +++ b/Userland/Libraries/LibWeb/Bindings/NavigatorPrototype.h @@ -19,7 +19,7 @@ class NavigatorPrototype final : public JS::Object { public: explicit NavigatorPrototype(JS::Realm& realm) - : JS::Object(*realm.global_object().object_prototype()) + : JS::Object(*realm.intrinsics().object_prototype()) { } }; diff --git a/Userland/Libraries/LibWeb/Bindings/OptionConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/OptionConstructor.cpp index 8f72bab816..c4b7930f13 100644 --- a/Userland/Libraries/LibWeb/Bindings/OptionConstructor.cpp +++ b/Userland/Libraries/LibWeb/Bindings/OptionConstructor.cpp @@ -16,7 +16,7 @@ namespace Web::Bindings { OptionConstructor::OptionConstructor(JS::Realm& realm) - : NativeFunction(*realm.global_object().function_prototype()) + : NativeFunction(*realm.intrinsics().function_prototype()) { } diff --git a/Userland/Libraries/LibWeb/Bindings/WindowConstructor.cpp b/Userland/Libraries/LibWeb/Bindings/WindowConstructor.cpp index 946aff9007..ef33827f17 100644 --- a/Userland/Libraries/LibWeb/Bindings/WindowConstructor.cpp +++ b/Userland/Libraries/LibWeb/Bindings/WindowConstructor.cpp @@ -12,7 +12,7 @@ namespace Web::Bindings { WindowConstructor::WindowConstructor(JS::Realm& realm) - : NativeFunction(*realm.global_object().function_prototype()) + : NativeFunction(*realm.intrinsics().function_prototype()) { } diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp index ca6a07d917..bcb42d8a04 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp @@ -15,7 +15,7 @@ namespace Web::Bindings { WebAssemblyInstanceConstructor::WebAssemblyInstanceConstructor(JS::Realm& realm) - : NativeFunction(*realm.global_object().function_prototype()) + : NativeFunction(*realm.intrinsics().function_prototype()) { } diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h index 8f409538a3..36ba30e1d1 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceObjectPrototype.h @@ -18,7 +18,7 @@ class WebAssemblyInstancePrototype final : public JS::Object { public: explicit WebAssemblyInstancePrototype(JS::Realm& realm) - : JS::Object(*realm.global_object().object_prototype()) + : JS::Object(*realm.intrinsics().object_prototype()) { } diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp index ea23f37cbe..35f38465ea 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp @@ -13,7 +13,7 @@ namespace Web::Bindings { WebAssemblyMemoryConstructor::WebAssemblyMemoryConstructor(JS::Realm& realm) - : NativeFunction(*realm.global_object().function_prototype()) + : NativeFunction(*realm.intrinsics().function_prototype()) { } diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.h b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.h index ac68af75fd..c9b8aa03e3 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.h +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryPrototype.h @@ -20,7 +20,7 @@ class WebAssemblyMemoryPrototype final : public JS::Object { public: explicit WebAssemblyMemoryPrototype(JS::Realm& realm) - : JS::Object(*realm.global_object().object_prototype()) + : JS::Object(*realm.intrinsics().object_prototype()) { } diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModuleConstructor.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModuleConstructor.cpp index 06969b48a6..71a24e7694 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModuleConstructor.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModuleConstructor.cpp @@ -15,7 +15,7 @@ namespace Web::Bindings { WebAssemblyModuleConstructor::WebAssemblyModuleConstructor(JS::Realm& realm) - : NativeFunction(*realm.global_object().function_prototype()) + : NativeFunction(*realm.intrinsics().function_prototype()) { } diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModulePrototype.h b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModulePrototype.h index b2177e2e98..33890534c7 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModulePrototype.h +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyModulePrototype.h @@ -20,7 +20,7 @@ class WebAssemblyModulePrototype final : public JS::Object { public: explicit WebAssemblyModulePrototype(JS::Realm& realm) - : JS::Object(*realm.global_object().object_prototype()) + : JS::Object(*realm.intrinsics().object_prototype()) { } }; diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp index a5d2ad63b8..5be142435f 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp @@ -26,7 +26,7 @@ namespace Web::Bindings { WebAssemblyObject::WebAssemblyObject(JS::Realm& realm) - : Object(*realm.global_object().object_prototype()) + : Object(*realm.intrinsics().object_prototype()) { s_abstract_machine.enable_instruction_count_limit(); } diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTableConstructor.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTableConstructor.cpp index a9a7bef0fe..0698f06be5 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTableConstructor.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTableConstructor.cpp @@ -15,7 +15,7 @@ namespace Web::Bindings { WebAssemblyTableConstructor::WebAssemblyTableConstructor(JS::Realm& realm) - : NativeFunction(*realm.global_object().function_prototype()) + : NativeFunction(*realm.intrinsics().function_prototype()) { } diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTablePrototype.h b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTablePrototype.h index c3d576f0a9..d5616de191 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTablePrototype.h +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyTablePrototype.h @@ -20,7 +20,7 @@ class WebAssemblyTablePrototype final : public JS::Object { public: explicit WebAssemblyTablePrototype(JS::Realm& realm) - : JS::Object(*realm.global_object().object_prototype()) + : JS::Object(*realm.intrinsics().object_prototype()) { } diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp index b08020d917..260eab4e84 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp @@ -143,7 +143,7 @@ DOM::ExceptionOr<JS::Value> XMLHttpRequest::response() // 3. Let jsonObject be the result of running parse JSON from bytes on thisโs received bytes. If that threw an exception, then return null. TextCodec::UTF8Decoder decoder; - auto json_object_result = JS::call(vm, realm.global_object().json_parse_function(), JS::js_undefined(), JS::js_string(vm, decoder.to_utf8({ m_received_bytes.data(), m_received_bytes.size() }))); + auto json_object_result = JS::call(vm, realm.intrinsics().json_parse_function(), JS::js_undefined(), JS::js_string(vm, decoder.to_utf8({ m_received_bytes.data(), m_received_bytes.size() }))); if (json_object_result.is_error()) return JS::Value(JS::js_null()); |