mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Rename current_global_object to current_principal_global_object
Again, following a rename as part of the introduction of shadow realms inducing a bunch of mechanical changes.
This commit is contained in:
committed by
Andrew Kaster
parent
0c2400641e
commit
84dc83e0e0
Notes:
github-actions[bot]
2024-11-01 19:16:55 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/84dc83e0e0a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1932 Reviewed-by: https://github.com/ADKaster ✅
@@ -44,7 +44,7 @@ void Text::visit_edges(Cell::Visitor& visitor)
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Text>> Text::construct_impl(JS::Realm& realm, String const& data)
|
||||
{
|
||||
// The new Text(data) constructor steps are to set this’s data to data and this’s node document to current global object’s associated Document.
|
||||
auto& window = verify_cast<HTML::Window>(HTML::current_global_object());
|
||||
auto& window = verify_cast<HTML::Window>(HTML::current_principal_global_object());
|
||||
return realm.heap().allocate<Text>(realm, window.associated_document(), data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user