mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Adding window.onstorage EventHandler
This commit is contained in:
parent
417cf5738e
commit
a183eacb63
3 changed files with 16 additions and 0 deletions
|
@ -83,6 +83,18 @@ impl HTMLBodyElementMethods for HTMLBodyElement {
|
|||
let win = window_from_node(self);
|
||||
win.r().SetOnunload(listener)
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#the-body-element
|
||||
fn GetOnstorage(&self) -> Option<Rc<EventHandlerNonNull>> {
|
||||
let win = window_from_node(self);
|
||||
win.r().GetOnstorage()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#the-body-element
|
||||
fn SetOnstorage(&self, listener: Option<Rc<EventHandlerNonNull>>) {
|
||||
let win = window_from_node(self);
|
||||
win.r().SetOnstorage(listener)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue