diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-01-24 13:29:09 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-01-24 20:52:36 +0530 |
commit | 5a3e1b8e6903c825e50597a218532d417f1dfef9 (patch) | |
tree | 50770b139f2e9968f7c15de246f222936975722f /components/script/dom/bindings/callback.rs | |
parent | be409233fdf8d3578e0529ec150a3697788ba4c8 (diff) | |
download | servo-5a3e1b8e6903c825e50597a218532d417f1dfef9.tar.gz servo-5a3e1b8e6903c825e50597a218532d417f1dfef9.zip |
rename compartment to realm
Diffstat (limited to 'components/script/dom/bindings/callback.rs')
-rw-r--r-- | components/script/dom/bindings/callback.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index fe6b8d36d39..6a69fb78209 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -205,7 +205,7 @@ impl CallbackInterface { } } -/// Wraps the reflector for `p` into the compartment of `cx`. +/// Wraps the reflector for `p` into the realm of `cx`. pub fn wrap_call_this_object<T: DomObject>(cx: JSContext, p: &T, mut rval: MutableHandleObject) { rval.set(p.reflector().get_jsobject().get()); assert!(!rval.get().is_null()); @@ -225,7 +225,7 @@ pub struct CallSetup { exception_global: DomRoot<GlobalScope>, /// The `JSContext` used for the call. cx: JSContext, - /// The compartment we were in before the call. + /// The realm we were in before the call. old_realm: *mut Realm, /// The exception handling used for the call. handling: ExceptionHandling, |