mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
Implement the "progressevent" argument to Document::createEvent
This commit is contained in:
parent
81f6e70a62
commit
889579c6de
4 changed files with 14 additions and 24 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue