summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Bindings
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-08-28 15:03:26 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-28 16:36:56 +0100
commit72730422bb91d8a980727cec1defbb20e498d1b1 (patch)
tree38a48e38c8f925c2895fd3d3a3b5c1b84a2691e4 /Userland/Libraries/LibWeb/Bindings
parent4f436bd323b147b77031d55cf916c4a6f26ae91f (diff)
downloadserenity-72730422bb91d8a980727cec1defbb20e498d1b1.zip
LibJS: Remove Shape::global_object() and Object::global_object()
Same reason as in commit 275dea9.
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings')
-rw-r--r--Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.h2
-rw-r--r--Userland/Libraries/LibWeb/Bindings/LocationObject.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.h b/Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.h
index fd26395b5c..0f7ea9226a 100644
--- a/Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.h
+++ b/Userland/Libraries/LibWeb/Bindings/IDLAbstractOperations.h
@@ -129,7 +129,7 @@ JS::Completion invoke_callback(Bindings::CallbackType& callback, Optional<JS::Va
auto* function_object = callback.callback.cell();
VERIFY(function_object);
- JS::MarkedVector<JS::Value> arguments_list { function_object->global_object().heap() };
+ JS::MarkedVector<JS::Value> arguments_list { function_object->vm().heap() };
(arguments_list.append(forward<Args>(args)), ...);
return invoke_callback(callback, move(this_argument), move(arguments_list));
diff --git a/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp b/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp
index f063bb7ece..c7bb3ef343 100644
--- a/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/LocationObject.cpp
@@ -60,7 +60,7 @@ DOM::Document const* LocationObject::relevant_document() const
// A Location object has an associated relevant Document, which is this Location object's
// relevant global object's browsing context's active document, if this Location object's
// relevant global object's browsing context is non-null, and null otherwise.
- auto* browsing_context = static_cast<WindowObject&>(global_object()).impl().browsing_context();
+ auto* browsing_context = verify_cast<WindowObject>(HTML::relevant_global_object(*this)).impl().browsing_context();
return browsing_context ? browsing_context->active_document() : nullptr;
}