mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -68,19 +68,19 @@ impl ImageData {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> ImageDataMethods for &'a ImageData {
|
||||
impl ImageDataMethods for ImageData {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-imagedata-width
|
||||
fn Width(self) -> u32 {
|
||||
fn Width(&self) -> u32 {
|
||||
self.width
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-imagedata-height
|
||||
fn Height(self) -> u32 {
|
||||
fn Height(&self) -> u32 {
|
||||
self.height
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-imagedata-data
|
||||
fn Data(self, _: *mut JSContext) -> *mut JSObject {
|
||||
fn Data(&self, _: *mut JSContext) -> *mut JSObject {
|
||||
self.data.get()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue