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
|
@ -21,8 +21,9 @@ use std::default::Default;
|
|||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
pub struct UIEvent {
|
||||
pub event: Event,
|
||||
event: Event,
|
||||
view: MutNullableJS<Window>,
|
||||
detail: Cell<i32>
|
||||
}
|
||||
|
@ -67,6 +68,11 @@ impl UIEvent {
|
|||
init.view.root_ref(), init.detail);
|
||||
Ok(event)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn event<'a>(&'a self) -> &'a Event {
|
||||
&self.event
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> UIEventMethods for JSRef<'a, UIEvent> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue