aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domrect.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/domrect.rs')
-rw-r--r--components/script/dom/domrect.rs12
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()
}
}