mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove GlobalRoot and GlobalRef
This commit is contained in:
parent
c66cf46bee
commit
b6bbd41e11
13 changed files with 63 additions and 173 deletions
|
@ -8,7 +8,6 @@ use dom::abstractworker::WorkerScriptMsg;
|
|||
use dom::bindings::codegen::Bindings::EventHandlerBinding::EventHandlerNonNull;
|
||||
use dom::bindings::codegen::Bindings::ServiceWorkerGlobalScopeBinding;
|
||||
use dom::bindings::codegen::Bindings::ServiceWorkerGlobalScopeBinding::ServiceWorkerGlobalScopeMethods;
|
||||
use dom::bindings::global::global_scope_from_context;
|
||||
use dom::bindings::inheritance::Castable;
|
||||
use dom::bindings::js::{Root, RootCollection};
|
||||
use dom::bindings::reflector::Reflectable;
|
||||
|
@ -311,7 +310,7 @@ impl ServiceWorkerGlobalScope {
|
|||
#[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::<ServiceWorkerGlobalScope>());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue