mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
make MouseEvent::new() and UIEvent::new() take enums for the bubbles and cancelable arguments
This commit is contained in:
parent
19cd87aefc
commit
5651ea06c6
6 changed files with 24 additions and 21 deletions
|
@ -516,8 +516,8 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> {
|
|||
let y = point.y as i32;
|
||||
let event = MouseEvent::new(window.r(),
|
||||
"click".to_owned(),
|
||||
true,
|
||||
true,
|
||||
EventBubbles::Bubbles,
|
||||
EventCancelable::Cancelable,
|
||||
Some(window.r()),
|
||||
0i32,
|
||||
x, y, x, y,
|
||||
|
@ -579,8 +579,8 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> {
|
|||
let window = self.window.root();
|
||||
let mouse_event = MouseEvent::new(window.r(),
|
||||
"mousemove".to_owned(),
|
||||
true,
|
||||
true,
|
||||
EventBubbles::Bubbles,
|
||||
EventCancelable::Cancelable,
|
||||
Some(window.r()),
|
||||
0i32,
|
||||
x, y, x, y,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue