mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
parent
59205323da
commit
6187ee631b
3 changed files with 11 additions and 24 deletions
|
@ -70,6 +70,7 @@ use dom::nodelist::NodeList;
|
||||||
use dom::processinginstruction::ProcessingInstruction;
|
use dom::processinginstruction::ProcessingInstruction;
|
||||||
use dom::range::Range;
|
use dom::range::Range;
|
||||||
use dom::servohtmlparser::{ParserRoot, ParserRef, MutNullableParserField};
|
use dom::servohtmlparser::{ParserRoot, ParserRef, MutNullableParserField};
|
||||||
|
use dom::storageevent::StorageEvent;
|
||||||
use dom::stylesheetlist::StyleSheetList;
|
use dom::stylesheetlist::StyleSheetList;
|
||||||
use dom::text::Text;
|
use dom::text::Text;
|
||||||
use dom::touch::Touch;
|
use dom::touch::Touch;
|
||||||
|
@ -2171,6 +2172,8 @@ impl DocumentMethods for Document {
|
||||||
)),
|
)),
|
||||||
"webglcontextevent" =>
|
"webglcontextevent" =>
|
||||||
Ok(Root::upcast(WebGLContextEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
|
Ok(Root::upcast(WebGLContextEvent::new_uninitialized(GlobalRef::Window(&self.window)))),
|
||||||
|
"storageevent" =>
|
||||||
|
Ok(Root::upcast(StorageEvent::new_uninitialized(&self.window, self.URL()))),
|
||||||
_ =>
|
_ =>
|
||||||
Err(Error::NotSupported),
|
Err(Error::NotSupported),
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@ use dom::bindings::js::{JS, MutNullableHeap, Root, RootedReference};
|
||||||
use dom::bindings::reflector::reflect_dom_object;
|
use dom::bindings::reflector::reflect_dom_object;
|
||||||
use dom::event::{Event, EventBubbles, EventCancelable};
|
use dom::event::{Event, EventBubbles, EventCancelable};
|
||||||
use dom::storage::Storage;
|
use dom::storage::Storage;
|
||||||
|
use dom::window::Window;
|
||||||
use string_cache::Atom;
|
use string_cache::Atom;
|
||||||
use util::str::DOMString;
|
use util::str::DOMString;
|
||||||
|
|
||||||
|
@ -42,6 +43,13 @@ impl StorageEvent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn new_uninitialized(window: &Window,
|
||||||
|
url: DOMString) -> Root<StorageEvent> {
|
||||||
|
reflect_dom_object(box StorageEvent::new_inherited(None, None, None, url, None),
|
||||||
|
GlobalRef::Window(window),
|
||||||
|
StorageEventBinding::Wrap)
|
||||||
|
}
|
||||||
|
|
||||||
pub fn new(global: GlobalRef,
|
pub fn new(global: GlobalRef,
|
||||||
type_: Atom,
|
type_: Atom,
|
||||||
bubbles: EventBubbles,
|
bubbles: EventBubbles,
|
||||||
|
|
|
@ -277,30 +277,6 @@
|
||||||
bug: https://github.com/servo/servo/issues/10740
|
bug: https://github.com/servo/servo/issues/10740
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[StorageEvent should be an alias for StorageEvent.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10736
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('StorageEvent') should be initialized correctly.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10736
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[storageevent should be an alias for StorageEvent.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10736
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('storageevent') should be initialized correctly.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10736
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[STORAGEEVENT should be an alias for StorageEvent.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10736
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createEvent('STORAGEEVENT') should be initialized correctly.]
|
|
||||||
bug: https://github.com/servo/servo/issues/10736
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[SVGZoomEvent should be an alias for SVGZoomEvent.]
|
[SVGZoomEvent should be an alias for SVGZoomEvent.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue