mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove JS::from_rooted
This commit is contained in:
parent
134fd18767
commit
b45f1918d1
14 changed files with 24 additions and 33 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue