mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -61,19 +61,19 @@ impl ProgressEvent {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> ProgressEventMethods for &'a ProgressEvent {
|
||||
impl ProgressEventMethods for ProgressEvent {
|
||||
// https://xhr.spec.whatwg.org/#dom-progressevent-lengthcomputable
|
||||
fn LengthComputable(self) -> bool {
|
||||
fn LengthComputable(&self) -> bool {
|
||||
self.length_computable
|
||||
}
|
||||
|
||||
// https://xhr.spec.whatwg.org/#dom-progressevent-loaded
|
||||
fn Loaded(self) -> u64 {
|
||||
fn Loaded(&self) -> u64 {
|
||||
self.loaded
|
||||
}
|
||||
|
||||
// https://xhr.spec.whatwg.org/#dom-progressevent-total
|
||||
fn Total(self) -> u64 {
|
||||
fn Total(&self) -> u64 {
|
||||
self.total
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue