mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Privatize InheritTypes
This commit is contained in:
parent
acd98a73a4
commit
9a52bb8310
80 changed files with 252 additions and 101 deletions
|
@ -32,8 +32,9 @@ pub enum WorkerGlobalScopeId {
|
|||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
pub struct WorkerGlobalScope {
|
||||
pub eventtarget: EventTarget,
|
||||
eventtarget: EventTarget,
|
||||
worker_url: Url,
|
||||
js_context: Rc<Cx>,
|
||||
resource_task: ResourceTask,
|
||||
|
@ -61,6 +62,11 @@ impl WorkerGlobalScope {
|
|||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn eventtarget<'a>(&'a self) -> &'a EventTarget {
|
||||
&self.eventtarget
|
||||
}
|
||||
|
||||
pub fn get_cx(&self) -> *mut JSContext {
|
||||
self.js_context.ptr
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue