mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove Reflectable::global
This commit is contained in:
parent
e7a1149984
commit
907781eb75
8 changed files with 15 additions and 22 deletions
|
@ -673,7 +673,7 @@ impl TestBindingMethods for TestBinding {
|
|||
}
|
||||
|
||||
fn PromiseRejectWithTypeError(&self, p: &Promise, s: USVString) {
|
||||
p.reject_error(self.global().r().get_cx(), Error::Type(s.0));
|
||||
p.reject_error(self.global_scope().get_cx(), Error::Type(s.0));
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
|
@ -789,7 +789,7 @@ impl TestBindingCallback {
|
|||
#[allow(unrooted_must_root)]
|
||||
pub fn invoke(self) {
|
||||
let p = self.promise.root();
|
||||
let cx = p.global().r().get_cx();
|
||||
let cx = p.global_scope().get_cx();
|
||||
let _ac = JSAutoCompartment::new(cx, p.reflector().get_jsobject().get());
|
||||
p.resolve_native(cx, &self.value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue