mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Stop reference-counting Runtime for workers.
This commit is contained in:
parent
c4e112a3be
commit
aeab05cd6e
2 changed files with 10 additions and 10 deletions
|
@ -55,8 +55,8 @@ pub struct WorkerGlobalScope {
|
|||
eventtarget: EventTarget,
|
||||
worker_id: WorkerId,
|
||||
worker_url: Url,
|
||||
#[ignore_heap_size_of = "Defined in std"]
|
||||
runtime: Rc<Runtime>,
|
||||
#[ignore_heap_size_of = "Defined in js"]
|
||||
runtime: Runtime,
|
||||
next_worker_id: Cell<WorkerId>,
|
||||
#[ignore_heap_size_of = "Defined in std"]
|
||||
resource_thread: ResourceThread,
|
||||
|
@ -94,7 +94,7 @@ pub struct WorkerGlobalScope {
|
|||
impl WorkerGlobalScope {
|
||||
pub fn new_inherited(init: WorkerGlobalScopeInit,
|
||||
worker_url: Url,
|
||||
runtime: Rc<Runtime>,
|
||||
runtime: Runtime,
|
||||
from_devtools_receiver: Receiver<DevtoolScriptControlMsg>,
|
||||
timer_event_chan: IpcSender<TimerEvent>)
|
||||
-> WorkerGlobalScope {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue