mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
Refactor document.createEvent(touchevent)
This commit is contained in:
parent
2cb6972d14
commit
5542f87400
1 changed files with 7 additions and 1 deletions
|
@ -1396,7 +1396,13 @@ impl DocumentMethods for Document {
|
|||
"messageevent" =>
|
||||
Ok(Root::upcast(MessageEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
|
||||
"touchevent" =>
|
||||
Ok(Root::upcast(TouchEvent::new_uninitialized(&self.window, &TouchList::new(&self.window, &[]), &TouchList::new(&self.window, &[]), &TouchList::new(&self.window, &[])))),
|
||||
Ok(Root::upcast(
|
||||
TouchEvent::new_uninitialized(&self.window,
|
||||
&TouchList::new(&self.window, &[]),
|
||||
&TouchList::new(&self.window, &[]),
|
||||
&TouchList::new(&self.window, &[]),
|
||||
)
|
||||
)),
|
||||
_ =>
|
||||
Err(Error::NotSupported),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue