mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +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
|
@ -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