Add spec links

This commit is contained in:
Bogdan Cuza 2015-07-21 18:53:01 +03:00 committed by Bogdan
parent f039827dcd
commit 233a769c67
61 changed files with 284 additions and 87 deletions

View file

@ -88,24 +88,28 @@ impl StorageEvent {
}
impl<'a> StorageEventMethods for &'a StorageEvent {
// https://html.spec.whatwg.org/multipage/#dom-storageevent-key
fn GetKey(self) -> Option<DOMString> {
self.key.borrow().clone()
}
// https://html.spec.whatwg.org/multipage/#dom-storageevent-oldvalue
fn GetOldValue(self) -> Option<DOMString> {
self.oldValue.borrow().clone()
}
// https://html.spec.whatwg.org/multipage/#dom-storageevent-newvalue
fn GetNewValue(self) -> Option<DOMString> {
self.newValue.borrow().clone()
}
// https://html.spec.whatwg.org/multipage/#dom-storageevent-url
fn Url(self) -> DOMString {
self.url.borrow().clone()
}
// https://html.spec.whatwg.org/multipage/#dom-storageevent-storagearea
fn GetStorageArea(self) -> Option<Root<Storage>> {
self.storageArea.get().map(Root::from_rooted)
}
}