aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs15
1 files changed, 5 insertions, 10 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 40b3aa57085..96f0377880a 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -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,