mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Stop using JSAutoRequest.
This commit is contained in:
parent
221db56b08
commit
735480c184
13 changed files with 13 additions and 26 deletions
|
@ -25,8 +25,7 @@ use dom::virtualmethods::VirtualMethods;
|
|||
use dom::window::Window;
|
||||
use fnv::FnvHasher;
|
||||
use heapsize::HeapSizeOf;
|
||||
use js::jsapi::{CompileFunction, JS_GetFunctionObject, RootedValue, RootedFunction};
|
||||
use js::jsapi::{JSAutoCompartment, JSAutoRequest};
|
||||
use js::jsapi::{CompileFunction, JS_GetFunctionObject, RootedValue, RootedFunction, JSAutoCompartment};
|
||||
use js::rust::{AutoObjectVectorWrapper, CompileOptionsWrapper};
|
||||
use libc::{c_char, size_t};
|
||||
use std::collections::HashMap;
|
||||
|
@ -422,7 +421,6 @@ impl EventTarget {
|
|||
|
||||
let scopechain = AutoObjectVectorWrapper::new(cx);
|
||||
|
||||
let _ar = JSAutoRequest::new(cx);
|
||||
let _ac = JSAutoCompartment::new(cx, window.reflector().get_jsobject().get());
|
||||
let mut handler = RootedFunction::new(cx, ptr::null_mut());
|
||||
let rv = unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue