mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove GlobalRoot and GlobalRef
This commit is contained in:
parent
c66cf46bee
commit
b6bbd41e11
13 changed files with 63 additions and 173 deletions
|
@ -11,7 +11,6 @@ use dom::bindings::codegen::Bindings::DedicatedWorkerGlobalScopeBinding;
|
|||
use dom::bindings::codegen::Bindings::DedicatedWorkerGlobalScopeBinding::DedicatedWorkerGlobalScopeMethods;
|
||||
use dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull;
|
||||
use dom::bindings::error::{ErrorInfo, ErrorResult};
|
||||
use dom::bindings::global::global_scope_from_context;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::{Root, RootCollection};
|
||||
use dom::bindings::reflector::Reflectable;
|
||||
|
@ -343,7 +342,7 @@ impl DedicatedWorkerGlobalScope {
|
|||
#[allow(unsafe_code)]
|
||||
unsafe extern "C" fn interrupt_callback(cx: *mut JSContext) -> bool {
|
||||
let worker =
|
||||
Root::downcast::<WorkerGlobalScope>(global_scope_from_context(cx))
|
||||
Root::downcast::<WorkerGlobalScope>(GlobalScope::from_context(cx))
|
||||
.expect("global is not a worker scope");
|
||||
assert!(worker.is::<DedicatedWorkerGlobalScope>());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue