mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Make 'Cell<JS<T>>' traceable.
This commit is contained in:
parent
da703d6a80
commit
bf05e6a9e2
1 changed files with 7 additions and 0 deletions
|
@ -160,3 +160,10 @@ impl<S: Encoder<E>, E> Encodable<S, E> for Traceable<JSVal> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// for a field which contains DOMType
|
||||||
|
impl<T: Reflectable+Encodable<S, E>, S: Encoder<E>, E> Encodable<S, E> for Cell<JS<T>> {
|
||||||
|
fn encode(&self, s: &mut S) -> Result<(), E> {
|
||||||
|
self.get().encode(s)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue