diff options
author | mrmiywj <jsyangwenjie@gmail.com> | 2016-05-06 19:16:10 +0800 |
---|---|---|
committer | mrmiywj <jsyangwenjie@gmail.com> | 2016-05-08 14:40:12 +0800 |
commit | dfaad2dab29bd896bb9735245c06d3e93c72054f (patch) | |
tree | b25e60cb12e1fca33b1885d6ffce71b69aaef154 /components/script/dom/document.rs | |
parent | 0558687d71295023b27860436e7a5aa5da7f49d0 (diff) | |
download | servo-dfaad2dab29bd896bb9735245c06d3e93c72054f.tar.gz servo-dfaad2dab29bd896bb9735245c06d3e93c72054f.zip |
'closeevent' argument for Document::createEvent
fix alphabetical order
delete unused tests
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index d422e9bd278..08c8dc6e29a 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -32,6 +32,7 @@ use dom::bindings::trace::RootedVec; use dom::bindings::xmlname::XMLName::InvalidXMLName; use dom::bindings::xmlname::{validate_and_extract, namespace_from_domstring, xml_name_type}; use dom::browsingcontext::BrowsingContext; +use dom::closeevent::CloseEvent; use dom::comment::Comment; use dom::customevent::CustomEvent; use dom::documentfragment::DocumentFragment; @@ -2190,6 +2191,8 @@ impl DocumentMethods for Document { Ok(Root::upcast(FocusEvent::new_uninitialized(GlobalRef::Window(&self.window)))), "errorevent" => Ok(Root::upcast(ErrorEvent::new_uninitialized(GlobalRef::Window(&self.window)))), + "closeevent" => + Ok(Root::upcast(CloseEvent::new_uninitialized(GlobalRef::Window(&self.window)))), _ => Err(Error::NotSupported), } |