mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Add transparent Traceable and Untraceable types to aid proper rooting practices, and replace ad-hoc Untraceable structs with empty Encodable implementations.
This commit is contained in:
parent
7441dae1af
commit
742f73ded5
14 changed files with 217 additions and 195 deletions
|
@ -37,6 +37,7 @@ use std::cast::transmute;
|
|||
use std::cast;
|
||||
use std::cell::{RefCell, Ref, RefMut};
|
||||
use std::iter::{Map, Filter};
|
||||
use std::libc;
|
||||
use std::libc::uintptr_t;
|
||||
use std::mem;
|
||||
|
||||
|
@ -562,7 +563,7 @@ impl NodeHelpers for JS<Node> {
|
|||
}
|
||||
|
||||
fn to_trusted_node_address(&self) -> TrustedNodeAddress {
|
||||
self.get() as *Node as TrustedNodeAddress
|
||||
TrustedNodeAddress(self.get() as *Node as *libc::c_void)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue