diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-05 10:29:38 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 21:36:00 +0200 |
commit | b6bbd41e11a8d73f884b7011905c05bd3efec3cd (patch) | |
tree | 44bf2af511f941aac3ff449b1b4b088f0286077c /components/script/script_runtime.rs | |
parent | c66cf46bee6306ba8cb51f22c0d704c31c17d0fd (diff) | |
download | servo-b6bbd41e11a8d73f884b7011905c05bd3efec3cd.tar.gz servo-b6bbd41e11a8d73f884b7011905c05bd3efec3cd.zip |
Remove GlobalRoot and GlobalRef
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r-- | components/script/script_runtime.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs index c1da1104cd4..603e24a1468 100644 --- a/components/script/script_runtime.rs +++ b/components/script/script_runtime.rs @@ -8,7 +8,6 @@ use dom::bindings::callback::ExceptionHandling; use dom::bindings::cell::DOMRefCell; use dom::bindings::codegen::Bindings::PromiseBinding::PromiseJobCallback; -use dom::bindings::global::global_scope_from_object; use dom::bindings::js::{Root, RootCollection, RootCollectionPtr, trace_roots}; use dom::bindings::refcounted::{LiveDOMReferences, trace_refcounted_objects}; use dom::bindings::trace::trace_traceables; @@ -178,7 +177,7 @@ unsafe extern "C" fn enqueue_job(_cx: *mut JSContext, _allocation_site: HandleObject, _data: *mut c_void) -> bool { let result = panic::catch_unwind(AssertUnwindSafe(|| { - let global = global_scope_from_object(job.get()); + let global = GlobalScope::from_object(job.get()); let pipeline = global.pipeline_id(); global.enqueue_promise_job(EnqueuedPromiseCallback { callback: PromiseJobCallback::new(job.get()), |