aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/event.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2017-05-26 13:46:13 -0400
committerJosh Matthews <josh@joshmatthews.net>2017-09-25 16:10:58 -0400
commit16166d66731d7040a91ddbed6ffd05d4fc64c97b (patch)
treeb1c20d92de7a3cc5a87e2d1c6ebfefa6a872c84d /components/script/dom/event.rs
parentb169689f32db6d497b04f3a5b173cba4acd33e93 (diff)
downloadservo-16166d66731d7040a91ddbed6ffd05d4fc64c97b.tar.gz
servo-16166d66731d7040a91ddbed6ffd05d4fc64c97b.zip
Derive the Default trait for dictionaries containing GC values.
Diffstat (limited to 'components/script/dom/event.rs')
-rw-r--r--components/script/dom/event.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/script/dom/event.rs b/components/script/dom/event.rs
index c9ef22bc6c1..cead9f74df9 100644
--- a/components/script/dom/event.rs
+++ b/components/script/dom/event.rs
@@ -522,3 +522,12 @@ fn inner_invoke(window: Option<&Window>,
// Step 3.
found
}
+
+impl Default for EventBinding::EventInit {
+ fn default() -> EventBinding::EventInit {
+ EventBinding::EventInit {
+ bubbles: false,
+ cancelable: false,
+ }
+ }
+}