mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Address review comments.
This commit is contained in:
parent
7b3e6d1f21
commit
0f2d0b1dc3
99 changed files with 388 additions and 380 deletions
|
@ -15,16 +15,16 @@ pub struct ValidityState {
|
|||
}
|
||||
|
||||
impl ValidityState {
|
||||
pub fn new_inherited(window: JS<Window>) -> ValidityState {
|
||||
pub fn new_inherited(window: &JSRef<Window>) -> ValidityState {
|
||||
ValidityState {
|
||||
reflector_: Reflector::new(),
|
||||
window: window,
|
||||
window: window.unrooted(),
|
||||
state: 0,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(window: &JSRef<Window>) -> Temporary<ValidityState> {
|
||||
reflect_dom_object(~ValidityState::new_inherited(window.unrooted()),
|
||||
reflect_dom_object(~ValidityState::new_inherited(window),
|
||||
window,
|
||||
ValidityStateBinding::Wrap)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue