mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add spec links
This commit is contained in:
parent
f039827dcd
commit
233a769c67
61 changed files with 284 additions and 87 deletions
|
@ -77,16 +77,17 @@ impl UIEvent {
|
|||
}
|
||||
|
||||
impl<'a> UIEventMethods for &'a UIEvent {
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#widl-UIEvent-view
|
||||
// https://w3c.github.io/uievents/#widl-UIEvent-view
|
||||
fn GetView(self) -> Option<Root<Window>> {
|
||||
self.view.get().map(Root::from_rooted)
|
||||
}
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#widl-UIEvent-detail
|
||||
// https://w3c.github.io/uievents/#widl-UIEvent-detail
|
||||
fn Detail(self) -> i32 {
|
||||
self.detail.get()
|
||||
}
|
||||
|
||||
// https://w3c.github.io/uievents/#widl-UIEvent-initUIEvent
|
||||
fn InitUIEvent(self,
|
||||
type_: DOMString,
|
||||
can_bubble: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue