mirror of
https://github.com/servo/servo.git
synced 2025-10-16 08:20:22 +01:00
auto merge of #2649 : ebalint/servo/2580_JS_T_unrooted_replace, r=jdm
removed .clone() calls modified from_rooted method parameter: T to &T
This commit is contained in:
commit
7ed5041891
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