mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00: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:
parent
0c2400641e
commit
84dc83e0e0
Notes:
github-actions[bot]
2024-11-01 19:16:55 +00:00
Author: https://github.com/shannonbooth
Commit: 84dc83e0e0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1932
Reviewed-by: https://github.com/ADKaster ✅
14 changed files with 27 additions and 25 deletions
|
@ -34,8 +34,8 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<CSSStyleSheet>> CSSStyleSheet::construct_im
|
|||
// 1. Construct a new CSSStyleSheet object sheet.
|
||||
auto sheet = create(realm, CSSRuleList::create_empty(realm), CSS::MediaList::create(realm, {}), {});
|
||||
|
||||
// 2. Set sheet’s location to the base URL of the associated Document for the current global object.
|
||||
auto associated_document = verify_cast<HTML::Window>(HTML::current_global_object()).document();
|
||||
// 2. Set sheet’s location to the base URL of the associated Document for the current principal global object.
|
||||
auto associated_document = verify_cast<HTML::Window>(HTML::current_principal_global_object()).document();
|
||||
sheet->set_location(MUST(associated_document->base_url().to_string()));
|
||||
|
||||
// 3. Set sheet’s stylesheet base URL to the baseURL attribute value from options.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue