mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use JSTraceable everywhere
This commit is contained in:
parent
85f79290a6
commit
cc44a3b064
133 changed files with 325 additions and 278 deletions
|
@ -64,14 +64,14 @@ use style::ComputedValues;
|
|||
use sync::Arc;
|
||||
use uuid;
|
||||
|
||||
use serialize::{Encoder, Encodable};
|
||||
|
||||
|
||||
//
|
||||
// The basic Node structure
|
||||
//
|
||||
|
||||
/// An HTML node.
|
||||
#[deriving(Encodable)]
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
pub struct Node {
|
||||
/// The JavaScript reflector for this node.
|
||||
|
@ -113,12 +113,6 @@ pub struct Node {
|
|||
unique_id: RefCell<String>,
|
||||
}
|
||||
|
||||
impl<S: Encoder<E>, E> Encodable<S, E> for LayoutDataRef {
|
||||
fn encode(&self, _s: &mut S) -> Result<(), E> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl NodeDerived for EventTarget {
|
||||
fn is_node(&self) -> bool {
|
||||
match self.type_id {
|
||||
|
@ -130,7 +124,7 @@ impl NodeDerived for EventTarget {
|
|||
|
||||
bitflags! {
|
||||
#[doc = "Flags for node items."]
|
||||
#[deriving(Encodable)]
|
||||
#[jstraceable]
|
||||
flags NodeFlags: u8 {
|
||||
#[doc = "Specifies whether this node is in a document."]
|
||||
static IsInDoc = 0x01,
|
||||
|
@ -243,7 +237,8 @@ impl LayoutDataRef {
|
|||
}
|
||||
|
||||
/// The different types of nodes.
|
||||
#[deriving(PartialEq,Encodable)]
|
||||
#[deriving(PartialEq)]
|
||||
#[jstraceable]
|
||||
pub enum NodeTypeId {
|
||||
DoctypeNodeTypeId,
|
||||
DocumentFragmentNodeTypeId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue