Address review comments

This commit is contained in:
Glenn Watson 2015-07-23 09:13:09 +10:00
parent 2e074ce452
commit d2600e66fb

View file

@ -645,12 +645,13 @@ impl<'a> DocumentHelpers<'a> for &'a Document {
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#event-type-click // https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#event-type-click
let x = point.x as i32; let x = point.x as i32;
let y = point.y as i32; let y = point.y as i32;
let clickCount = 1;
let event = MouseEvent::new(window.r(), let event = MouseEvent::new(window.r(),
mouse_event_type_string, mouse_event_type_string,
EventBubbles::Bubbles, EventBubbles::Bubbles,
EventCancelable::Cancelable, EventCancelable::Cancelable,
Some(window.r()), Some(window.r()),
1i32, clickCount,
x, y, x, y, x, y, x, y,
false, false, false, false, false, false, false, false,
0i16, 0i16,