diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-31 14:43:58 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-31 14:43:58 +0200 |
commit | b45f1918d16a4c94a18968dc6b69b74408f71083 (patch) | |
tree | f255ab743ffb86040631275e90330625973dceff /components/script/dom/domrectlist.rs | |
parent | 134fd1876718e9e547873c5d1acf140ae5d6aaac (diff) | |
download | servo-b45f1918d16a4c94a18968dc6b69b74408f71083.tar.gz servo-b45f1918d16a4c94a18968dc6b69b74408f71083.zip |
Remove JS::from_rooted
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(), } } |