mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue