diff options
author | Stephen (Ziyun) Li <stephen.liziyun@gmail.com> | 2016-04-25 21:28:17 -0400 |
---|---|---|
committer | Stephen (Ziyun) Li <stephen.liziyun@gmail.com> | 2016-04-26 00:32:50 -0400 |
commit | 889579c6ded1e019576a9203fd933466a2bced1c (patch) | |
tree | f3a102339fbadbafe6338fb4c2d4836adca4e305 /components/script/dom/document.rs | |
parent | 81f6e70a623a6f11535322ed2ef954eafaf8c70c (diff) | |
download | servo-889579c6ded1e019576a9203fd933466a2bced1c.tar.gz servo-889579c6ded1e019576a9203fd933466a2bced1c.zip |
Implement the "progressevent" argument to Document::createEvent
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 9488c0bdc41..7d25e484aa3 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -68,6 +68,7 @@ use dom::node::{self, CloneChildrenFlag, Node, NodeDamage, window_from_node}; use dom::nodeiterator::NodeIterator; use dom::nodelist::NodeList; use dom::processinginstruction::ProcessingInstruction; +use dom::progressevent::ProgressEvent; use dom::range::Range; use dom::servohtmlparser::{ParserRoot, ParserRef, MutNullableParserField}; use dom::storageevent::StorageEvent; @@ -2183,6 +2184,8 @@ impl DocumentMethods for Document { Ok(Root::upcast(WebGLContextEvent::new_uninitialized(GlobalRef::Window(&self.window)))), "storageevent" => Ok(Root::upcast(StorageEvent::new_uninitialized(&self.window, self.URL()))), + "progressevent" => + Ok(Root::upcast(ProgressEvent::new_uninitialized(&self.window))), _ => Err(Error::NotSupported), } |