diff options
author | Cameron Zwarich <zwarich@mozilla.com> | 2014-09-19 01:32:30 -0700 |
---|---|---|
committer | Cameron Zwarich <zwarich@mozilla.com> | 2014-09-20 11:54:10 -0700 |
commit | 2c8d51a37c84fb5de531d00c45de9c0020930b11 (patch) | |
tree | 9d65c2f2141edf9bd8b47bb785b7e948e092f831 /components/script/dom/domrect.rs | |
parent | 2adc594e5d8babaadbe1a4e05a8f7d808313728f (diff) | |
download | servo-2c8d51a37c84fb5de531d00c45de9c0020930b11.tar.gz servo-2c8d51a37c84fb5de531d00c45de9c0020930b11.zip |
More progress in the &JSRef -> JSRef conversion
Change all of the <Class>Methods traits to take `self` instead of
`&self`.
Diffstat (limited to 'components/script/dom/domrect.rs')
-rw-r--r-- | components/script/dom/domrect.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/domrect.rs b/components/script/dom/domrect.rs index f9fdf9b79cd..53ca08ba482 100644 --- a/components/script/dom/domrect.rs +++ b/components/script/dom/domrect.rs @@ -41,27 +41,27 @@ impl DOMRect { } impl<'a> DOMRectMethods for JSRef<'a, DOMRect> { - fn Top(&self) -> f32 { + fn Top(self) -> f32 { self.top } - fn Bottom(&self) -> f32 { + fn Bottom(self) -> f32 { self.bottom } - fn Left(&self) -> f32 { + fn Left(self) -> f32 { self.left } - fn Right(&self) -> f32 { + fn Right(self) -> f32 { self.right } - fn Width(&self) -> f32 { + fn Width(self) -> f32 { (self.right - self.left).abs() } - fn Height(&self) -> f32 { + fn Height(self) -> f32 { (self.bottom - self.top).abs() } } |