mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Introduce Reflectable::global_scope
This commit is contained in:
parent
27f100b1d4
commit
ae6af5172b
30 changed files with 116 additions and 120 deletions
|
@ -285,7 +285,7 @@ impl URLMethods for URL {
|
|||
// https://url.spec.whatwg.org/#dom-url-searchparams
|
||||
fn SearchParams(&self) -> Root<URLSearchParams> {
|
||||
self.search_params.or_init(|| {
|
||||
URLSearchParams::new(self.global().r().as_global_scope(), Some(self))
|
||||
URLSearchParams::new(&self.global_scope(), Some(self))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue