diff options
Diffstat (limited to 'components/script/dom/touchevent.rs')
-rw-r--r-- | components/script/dom/touchevent.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/components/script/dom/touchevent.rs b/components/script/dom/touchevent.rs index 4f0822fddaf..1a2f7334cdf 100644 --- a/components/script/dom/touchevent.rs +++ b/components/script/dom/touchevent.rs @@ -55,26 +55,26 @@ impl TouchEvent { pub fn new(window: &Window, type_: DOMString, - canBubble: EventBubbles, + can_bubble: EventBubbles, cancelable: EventCancelable, view: Option<&Window>, detail: i32, touches: &TouchList, changed_touches: &TouchList, target_touches: &TouchList, - ctrlKey: bool, - altKey: bool, - shiftKey: bool, - metaKey: bool) -> Root<TouchEvent> { + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool) -> Root<TouchEvent> { let ev = TouchEvent::new_uninitialized(window, touches, changed_touches, target_touches); ev.upcast::<UIEvent>().InitUIEvent(type_, - bool::from(canBubble), + bool::from(can_bubble), bool::from(cancelable), view, detail); - ev.ctrl_key.set(ctrlKey); - ev.alt_key.set(altKey); - ev.shift_key.set(shiftKey); - ev.meta_key.set(metaKey); + ev.ctrl_key.set(ctrl_key); + ev.alt_key.set(alt_key); + ev.shift_key.set(shift_key); + ev.meta_key.set(meta_key); ev } } |