diff options
author | Ms2ger <Ms2ger@gmail.com> | 2015-11-17 16:52:17 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2015-11-18 11:14:05 +0100 |
commit | 0c61be7a577b99dc138eb6a2e46fb9276df0870d (patch) | |
tree | 8188a7ed8f86ce1fab95f7aa4ff5c43819e4520d /components/script/dom/activation.rs | |
parent | ceb72e54e469bb3811fb641e7c38f476781a5720 (diff) | |
download | servo-0c61be7a577b99dc138eb6a2e46fb9276df0870d.tar.gz servo-0c61be7a577b99dc138eb6a2e46fb9276df0870d.zip |
Rustfmt some of script.
Diffstat (limited to 'components/script/dom/activation.rs')
-rw-r--r-- | components/script/dom/activation.rs | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/components/script/dom/activation.rs b/components/script/dom/activation.rs index ffc4deb33df..6fd1882c579 100644 --- a/components/script/dom/activation.rs +++ b/components/script/dom/activation.rs @@ -31,7 +31,11 @@ pub trait Activatable { fn implicit_submission(&self, ctrlKey: bool, shiftKey: bool, altKey: bool, metaKey: bool); // https://html.spec.whatwg.org/multipage/#run-synthetic-click-activation-steps - fn synthetic_click_activation(&self, ctrlKey: bool, shiftKey: bool, altKey: bool, metaKey: bool) { + fn synthetic_click_activation(&self, + ctrlKey: bool, + shiftKey: bool, + altKey: bool, + metaKey: bool) { let element = self.as_element(); // Step 1 if element.click_in_progress() { @@ -46,10 +50,22 @@ pub trait Activatable { // https://html.spec.whatwg.org/multipage/#fire-a-synthetic-mouse-event let win = window_from_node(element); let target = element.upcast(); - let mouse = MouseEvent::new(win.r(), DOMString::from("click"), - EventBubbles::DoesNotBubble, EventCancelable::NotCancelable, Some(win.r()), 1, - 0, 0, 0, 0, ctrlKey, shiftKey, altKey, metaKey, - 0, None); + let mouse = MouseEvent::new(win.r(), + DOMString::from("click"), + EventBubbles::DoesNotBubble, + EventCancelable::NotCancelable, + Some(win.r()), + 1, + 0, + 0, + 0, + 0, + ctrlKey, + shiftKey, + altKey, + metaKey, + 0, + None); let event = mouse.upcast::<Event>(); event.fire(target); |