Use JSTraceable everywhere

This commit is contained in:
Manish Goregaokar 2014-09-24 03:01:03 +05:30
parent 85f79290a6
commit cc44a3b064
133 changed files with 325 additions and 278 deletions

View file

@ -19,11 +19,11 @@ use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::document::Document;
use dom::node::{Node, NodeHelpers};
use serialize::{Encoder, Encodable};
use std::cell::Cell;
// http://dom.spec.whatwg.org/#interface-treewalker
#[deriving(Encodable)]
#[jstraceable]
#[must_root]
pub struct TreeWalker {
pub reflector_: Reflector,
@ -552,7 +552,7 @@ impl<'a> Iterator<JSRef<'a, Node>> for JSRef<'a, TreeWalker> {
}
}
#[deriving(Encodable)]
#[jstraceable]
pub enum Filter {
FilterNone,
FilterNative(Untraceable<fn (node: JSRef<Node>) -> u16>),