mirror of
https://github.com/servo/servo.git
synced 2025-10-16 00:10:23 +01:00
Port modern callback handling code from Gecko, and copy related WebIDL parser bits too.
This commit is contained in:
parent
04931adf70
commit
003e5bcd46
18 changed files with 442 additions and 223 deletions
|
@ -110,6 +110,7 @@ impl<T> DerefMut<T> for Untraceable<T> {
|
|||
/// Encapsulates a type that can be traced but is boxed in a type we don't control
|
||||
/// (such as RefCell). Wrap a field in Traceable and implement the Encodable trait
|
||||
/// for that new concrete type to achieve magic compiler-derived trace hooks.
|
||||
#[deriving(Eq, Clone)]
|
||||
pub struct Traceable<T> {
|
||||
inner: T
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue