mirror of
https://github.com/servo/servo.git
synced 2025-10-18 09:19:16 +01:00
Replace uses of JS<T>.unrooted() with JS::from_rooted #2580
This commit is contained in:
parent
da668f53d9
commit
bda29ade09
20 changed files with 51 additions and 53 deletions
|
@ -19,7 +19,7 @@ impl ValidityState {
|
|||
pub fn new_inherited(window: &JSRef<Window>) -> ValidityState {
|
||||
ValidityState {
|
||||
reflector_: Reflector::new(),
|
||||
window: Cell::new(window.unrooted()),
|
||||
window: Cell::new(JS::from_rooted(window)),
|
||||
state: 0,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue