aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/clientrectlist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/clientrectlist.rs')
-rw-r--r--src/components/script/dom/clientrectlist.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/clientrectlist.rs b/src/components/script/dom/clientrectlist.rs
index 9a722108d01..2f7d5916e27 100644
--- a/src/components/script/dom/clientrectlist.rs
+++ b/src/components/script/dom/clientrectlist.rs
@@ -18,11 +18,11 @@ pub struct ClientRectList {
impl ClientRectList {
pub fn new_inherited(window: &JSRef<Window>,
rects: Vec<JSRef<ClientRect>>) -> ClientRectList {
- let rects = rects.iter().map(|rect| rect.unrooted()).collect();
+ let rects = rects.iter().map(|rect| JS::from_rooted(rect)).collect();
ClientRectList {
reflector_: Reflector::new(),
rects: rects,
- window: window.unrooted(),
+ window: JS::from_rooted(window),
}
}