mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make the traits for the IDL interfaces take &self
This commit is contained in:
parent
856fda7f2e
commit
709d347872
99 changed files with 1192 additions and 1192 deletions
|
@ -87,29 +87,29 @@ impl StorageEvent {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> StorageEventMethods for &'a StorageEvent {
|
||||
impl StorageEventMethods for StorageEvent {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-storageevent-key
|
||||
fn GetKey(self) -> Option<DOMString> {
|
||||
fn GetKey(&self) -> Option<DOMString> {
|
||||
self.key.borrow().clone()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-storageevent-oldvalue
|
||||
fn GetOldValue(self) -> Option<DOMString> {
|
||||
fn GetOldValue(&self) -> Option<DOMString> {
|
||||
self.oldValue.borrow().clone()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-storageevent-newvalue
|
||||
fn GetNewValue(self) -> Option<DOMString> {
|
||||
fn GetNewValue(&self) -> Option<DOMString> {
|
||||
self.newValue.borrow().clone()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-storageevent-url
|
||||
fn Url(self) -> DOMString {
|
||||
fn Url(&self) -> DOMString {
|
||||
self.url.borrow().clone()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-storageevent-storagearea
|
||||
fn GetStorageArea(self) -> Option<Root<Storage>> {
|
||||
fn GetStorageArea(&self) -> Option<Root<Storage>> {
|
||||
self.storageArea.get().map(Root::from_rooted)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue