diff options
Diffstat (limited to 'components/script/dom/bindings/interface.rs')
-rw-r--r-- | components/script/dom/bindings/interface.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/interface.rs b/components/script/dom/bindings/interface.rs index 6fa7591b41b..d3f77356b08 100644 --- a/components/script/dom/bindings/interface.rs +++ b/components/script/dom/bindings/interface.rs @@ -686,14 +686,14 @@ pub fn get_desired_proto( // Fall back to getting the proto for our given proto id in the realm that // GetFunctionRealm(newTarget) returns. - rooted!(in(*cx) let realm = GetFunctionRealm(*cx, new_target.handle().into())); + let realm = GetFunctionRealm(*cx, new_target.handle().into()); - if (*realm).is_null() { + if realm.is_null() { return Err(()); } { - let _realm = JSAutoRealm::new(*cx, GetRealmGlobalOrNull(*realm)); + let _realm = JSAutoRealm::new(*cx, GetRealmGlobalOrNull(realm)); rooted!(in(*cx) let global = CurrentGlobalOrNull(*cx)); get_per_interface_object_handle( cx, |