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
|
@ -34,19 +34,19 @@ impl WebGLActiveInfo {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> WebGLActiveInfoMethods for &'a WebGLActiveInfo {
|
||||
impl WebGLActiveInfoMethods for WebGLActiveInfo {
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.11.1
|
||||
fn Size(self) -> i32 {
|
||||
fn Size(&self) -> i32 {
|
||||
self.size
|
||||
}
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.11.1
|
||||
fn Type(self) -> u32 {
|
||||
fn Type(&self) -> u32 {
|
||||
self.ty
|
||||
}
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.11.1
|
||||
fn Name(self) -> DOMString {
|
||||
fn Name(&self) -> DOMString {
|
||||
self.name.clone()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue