Make the traits for the IDL interfaces take &self

This commit is contained in:
Anthony Ramine 2015-08-27 22:15:54 +02:00
parent 856fda7f2e
commit 709d347872
99 changed files with 1192 additions and 1192 deletions

View file

@ -86,19 +86,19 @@ impl UIEvent {
}
}
impl<'a> UIEventMethods for &'a UIEvent {
impl UIEventMethods for UIEvent {
// https://w3c.github.io/uievents/#widl-UIEvent-view
fn GetView(self) -> Option<Root<Window>> {
fn GetView(&self) -> Option<Root<Window>> {
self.view.get().map(Root::from_rooted)
}
// https://w3c.github.io/uievents/#widl-UIEvent-detail
fn Detail(self) -> i32 {
fn Detail(&self) -> i32 {
self.detail.get()
}
// https://w3c.github.io/uievents/#widl-UIEvent-initUIEvent
fn InitUIEvent(self,
fn InitUIEvent(&self,
type_: DOMString,
can_bubble: bool,
cancelable: bool,