diff options
Diffstat (limited to 'components/script/dom/domrectlist.rs')
-rw-r--r-- | components/script/dom/domrectlist.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/domrectlist.rs b/components/script/dom/domrectlist.rs index b6411dbca86..adb246158f4 100644 --- a/components/script/dom/domrectlist.rs +++ b/components/script/dom/domrectlist.rs @@ -22,7 +22,7 @@ impl DOMRectList { { DOMRectList { reflector_: Reflector::new(), - rects: rects.map(|r| JS::from_rooted(&r)).collect(), + rects: rects.map(|r| JS::from_ref(&*r)).collect(), } } |