aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domrectlist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/domrectlist.rs')
-rw-r--r--components/script/dom/domrectlist.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/domrectlist.rs b/components/script/dom/domrectlist.rs
index 2efeb9d1587..cd67dbc28c7 100644
--- a/components/script/dom/domrectlist.rs
+++ b/components/script/dom/domrectlist.rs
@@ -32,14 +32,14 @@ impl DOMRectList {
}
}
-impl<'a> DOMRectListMethods for &'a DOMRectList {
+impl DOMRectListMethods for DOMRectList {
// https://drafts.fxtf.org/geometry/#dom-domrectlist-length
- fn Length(self) -> u32 {
+ fn Length(&self) -> u32 {
self.rects.len() as u32
}
// https://drafts.fxtf.org/geometry/#dom-domrectlist-item
- fn Item(self, index: u32) -> Option<Root<DOMRect>> {
+ fn Item(&self, index: u32) -> Option<Root<DOMRect>> {
let rects = &self.rects;
if index < rects.len() as u32 {
Some(rects[index as usize].root())
@@ -49,7 +49,7 @@ impl<'a> DOMRectListMethods for &'a DOMRectList {
}
// check-tidy: no specs after this line
- fn IndexedGetter(self, index: u32, found: &mut bool) -> Option<Root<DOMRect>> {
+ fn IndexedGetter(&self, index: u32, found: &mut bool) -> Option<Root<DOMRect>> {
*found = index < self.rects.len() as u32;
self.Item(index)
}