mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:47:46 +00:00
LibJS: Remove Shape::global_object() and Object::global_object()
Same reason as in commit 275dea9
.
This commit is contained in:
parent
4f436bd323
commit
72730422bb
7 changed files with 3 additions and 16 deletions
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue