Use #[dom_struct] everywhere

This commit is contained in:
Manish Goregaokar 2014-10-15 14:25:33 +05:30
parent c45550de73
commit 3f2cbb275b
119 changed files with 119 additions and 357 deletions

View file

@ -69,9 +69,7 @@ impl Str for AttrValue {
} }
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct Attr { pub struct Attr {
reflector_: Reflector, reflector_: Reflector,
local_name: Atom, local_name: Atom,

View file

@ -15,9 +15,7 @@ pub enum BlobType {
FileTypeId FileTypeId
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct Blob { pub struct Blob {
reflector_: Reflector, reflector_: Reflector,
type_: BlobType type_: BlobType

View file

@ -65,9 +65,7 @@ impl BrowserContext {
} }
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct SessionHistoryEntry { pub struct SessionHistoryEntry {
document: JS<Document>, document: JS<Document>,
children: Vec<BrowserContext> children: Vec<BrowserContext>

View file

@ -15,9 +15,7 @@ use geom::size::Size2D;
use canvas::canvas_render_task::{CanvasMsg, CanvasRenderTask, ClearRect, Close, FillRect, Recreate, StrokeRect}; use canvas::canvas_render_task::{CanvasMsg, CanvasRenderTask, ClearRect, Close, FillRect, Recreate, StrokeRect};
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct CanvasRenderingContext2D { pub struct CanvasRenderingContext2D {
reflector_: Reflector, reflector_: Reflector,
global: GlobalField, global: GlobalField,

View file

@ -15,9 +15,7 @@ use dom::eventtarget::{EventTarget, NodeTargetTypeId};
use dom::node::{CommentNodeTypeId, Node, NodeTypeId, TextNodeTypeId, ProcessingInstructionNodeTypeId, NodeHelpers}; use dom::node::{CommentNodeTypeId, Node, NodeTypeId, TextNodeTypeId, ProcessingInstructionNodeTypeId, NodeHelpers};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct CharacterData { pub struct CharacterData {
node: Node, node: Node,
data: DOMRefCell<DOMString>, data: DOMRefCell<DOMString>,

View file

@ -16,9 +16,7 @@ use dom::node::{CommentNodeTypeId, Node};
use servo_util::str::DOMString; use servo_util::str::DOMString;
/// An HTML comment. /// An HTML comment.
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct Comment { pub struct Comment {
characterdata: CharacterData, characterdata: CharacterData,
} }

View file

@ -9,9 +9,7 @@ use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object}; use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct Console { pub struct Console {
reflector_: Reflector reflector_: Reflector
} }

View file

@ -17,9 +17,7 @@ use servo_util::str::DOMString;
use std::cell::Cell; use std::cell::Cell;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct CustomEvent { pub struct CustomEvent {
event: Event, event: Event,
detail: Cell<JSVal>, detail: Cell<JSVal>,

View file

@ -36,9 +36,7 @@ use std::task::TaskBuilder;
use native::task::NativeTaskBuilder; use native::task::NativeTaskBuilder;
use url::Url; use url::Url;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct DedicatedWorkerGlobalScope { pub struct DedicatedWorkerGlobalScope {
workerglobalscope: WorkerGlobalScope, workerglobalscope: WorkerGlobalScope,
receiver: Receiver<ScriptMsg>, receiver: Receiver<ScriptMsg>,

View file

@ -73,9 +73,7 @@ pub enum IsHTMLDocument {
NonHTMLDocument, NonHTMLDocument,
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct Document { pub struct Document {
node: Node, node: Node,
window: JS<Window>, window: JS<Window>,

View file

@ -18,9 +18,7 @@ use dom::node::{DocumentFragmentNodeTypeId, Node, NodeHelpers, window_from_node}
use dom::nodelist::NodeList; use dom::nodelist::NodeList;
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct DocumentFragment { pub struct DocumentFragment {
node: Node, node: Node,
} }

View file

@ -13,9 +13,7 @@ use dom::node::{Node, DoctypeNodeTypeId, NodeHelpers};
use servo_util::str::DOMString; use servo_util::str::DOMString;
/// The `DOCTYPE` tag. /// The `DOCTYPE` tag.
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct DocumentType { pub struct DocumentType {
node: Node, node: Node,
name: DOMString, name: DOMString,

View file

@ -61,9 +61,7 @@ impl DOMErrorName {
} }
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct DOMException { pub struct DOMException {
code: DOMErrorName, code: DOMErrorName,
reflector_: Reflector reflector_: Reflector

View file

@ -22,9 +22,7 @@ use dom::node::Node;
use dom::text::Text; use dom::text::Text;
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct DOMImplementation { pub struct DOMImplementation {
document: JS<Document>, document: JS<Document>,
reflector_: Reflector, reflector_: Reflector,

View file

@ -14,9 +14,7 @@ use dom::document::{Document, HTMLDocument, NonHTMLDocument};
use dom::window::Window; use dom::window::Window;
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct DOMParser { pub struct DOMParser {
window: JS<Window>, //XXXjdm Document instead? window: JS<Window>, //XXXjdm Document instead?
reflector_: Reflector reflector_: Reflector

View file

@ -10,9 +10,7 @@ use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::window::Window; use dom::window::Window;
use servo_util::geometry::Au; use servo_util::geometry::Au;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct DOMRect { pub struct DOMRect {
reflector_: Reflector, reflector_: Reflector,
top: f32, top: f32,

View file

@ -10,9 +10,7 @@ use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::domrect::DOMRect; use dom::domrect::DOMRect;
use dom::window::Window; use dom::window::Window;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct DOMRectList { pub struct DOMRectList {
reflector_: Reflector, reflector_: Reflector,
rects: Vec<JS<DOMRect>>, rects: Vec<JS<DOMRect>>,

View file

@ -15,9 +15,7 @@ use dom::node::window_from_node;
use servo_util::str::{DOMString, HTML_SPACE_CHARACTERS}; use servo_util::str::{DOMString, HTML_SPACE_CHARACTERS};
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct DOMTokenList { pub struct DOMTokenList {
reflector_: Reflector, reflector_: Reflector,
element: JS<Element>, element: JS<Element>,

View file

@ -45,9 +45,7 @@ use std::mem;
use string_cache::{Atom, Namespace}; use string_cache::{Atom, Namespace};
use url::UrlParser; use url::UrlParser;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct Element { pub struct Element {
node: Node, node: Node,
local_name: Atom, local_name: Atom,

View file

@ -47,9 +47,7 @@ pub enum EventCancelable {
NotCancelable NotCancelable
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct Event { pub struct Event {
type_id: EventTypeId, type_id: EventTypeId,
reflector_: Reflector, reflector_: Reflector,

View file

@ -65,9 +65,7 @@ pub struct EventListenerEntry {
listener: EventListenerType listener: EventListenerType
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct EventTarget { pub struct EventTarget {
type_id: EventTargetTypeId, type_id: EventTargetTypeId,
reflector_: Reflector, reflector_: Reflector,

View file

@ -10,9 +10,7 @@ use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::blob::{Blob, BlobType, FileTypeId}; use dom::blob::{Blob, BlobType, FileTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct File { pub struct File {
blob: Blob, blob: Blob,
name: DOMString, name: DOMString,

View file

@ -25,9 +25,7 @@ pub enum FormDatum {
FileData(JS<File>) FileData(JS<File>)
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct FormData { pub struct FormData {
data: RefCell<HashMap<DOMString, Vec<FormDatum>>>, data: RefCell<HashMap<DOMString, Vec<FormDatum>>>,
reflector_: Reflector, reflector_: Reflector,

View file

@ -21,9 +21,7 @@ use dom::virtualmethods::VirtualMethods;
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLAnchorElement { pub struct HTMLAnchorElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLAppletElement { pub struct HTMLAppletElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlmediaelement::HTMLMediaElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLAudioElement { pub struct HTMLAudioElement {
htmlmediaelement: HTMLMediaElement htmlmediaelement: HTMLMediaElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLBaseElement { pub struct HTMLBaseElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -20,9 +20,7 @@ use dom::virtualmethods::VirtualMethods;
use servo_util::str::DOMString; use servo_util::str::DOMString;
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLBodyElement { pub struct HTMLBodyElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLBRElement { pub struct HTMLBRElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -20,9 +20,7 @@ use std::ascii::OwnedStrAsciiExt;
use servo_util::str::DOMString; use servo_util::str::DOMString;
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLButtonElement { pub struct HTMLButtonElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -28,9 +28,7 @@ use std::default::Default;
static DefaultWidth: u32 = 300; static DefaultWidth: u32 = 300;
static DefaultHeight: u32 = 150; static DefaultHeight: u32 = 150;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLCanvasElement { pub struct HTMLCanvasElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
context: MutNullableJS<CanvasRenderingContext2D>, context: MutNullableJS<CanvasRenderingContext2D>,

View file

@ -29,9 +29,7 @@ pub enum CollectionTypeId {
Live(JS<Node>, Box<CollectionFilter+'static>) Live(JS<Node>, Box<CollectionFilter+'static>)
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLCollection { pub struct HTMLCollection {
collection: CollectionTypeId, collection: CollectionTypeId,
reflector_: Reflector, reflector_: Reflector,

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLDataElement { pub struct HTMLDataElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -16,9 +16,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId, window_from_node}; use dom::node::{Node, ElementNodeTypeId, window_from_node};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLDataListElement { pub struct HTMLDataListElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLDirectoryElement { pub struct HTMLDirectoryElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLDivElement { pub struct HTMLDivElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLDListElement { pub struct HTMLDListElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -20,9 +20,7 @@ use dom::virtualmethods::VirtualMethods;
use servo_util::str::DOMString; use servo_util::str::DOMString;
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLElement { pub struct HTMLElement {
element: Element element: Element
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLEmbedElement { pub struct HTMLEmbedElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -21,9 +21,7 @@ use dom::virtualmethods::VirtualMethods;
use servo_util::str::{DOMString, StaticStringVec}; use servo_util::str::{DOMString, StaticStringVec};
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLFieldSetElement { pub struct HTMLFieldSetElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLFontElement { pub struct HTMLFontElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -30,9 +30,7 @@ use url::UrlParser;
use url::form_urlencoded::serialize; use url::form_urlencoded::serialize;
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLFormElement { pub struct HTMLFormElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLFrameElement { pub struct HTMLFrameElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLFrameSetElement { pub struct HTMLFrameSetElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLHeadElement { pub struct HTMLHeadElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -23,9 +23,7 @@ pub enum HeadingLevel {
Heading6, Heading6,
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLHeadingElement { pub struct HTMLHeadingElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
level: HeadingLevel, level: HeadingLevel,

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLHRElement { pub struct HTMLHRElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLHtmlElement { pub struct HTMLHtmlElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -39,9 +39,7 @@ enum SandboxAllowance {
AllowPopups = 0x20 AllowPopups = 0x20
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLIFrameElement { pub struct HTMLIFrameElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
size: Cell<Option<IFrameSize>>, size: Cell<Option<IFrameSize>>,

View file

@ -24,9 +24,7 @@ use url::{Url, UrlParser};
use std::cell::RefCell; use std::cell::RefCell;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLImageElement { pub struct HTMLImageElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
image: RefCell<Option<Url>>, image: RefCell<Option<Url>>,

View file

@ -44,9 +44,7 @@ enum InputType {
InputPassword InputPassword
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLInputElement { pub struct HTMLInputElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
input_type: Cell<InputType>, input_type: Cell<InputType>,

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLLabelElement { pub struct HTMLLabelElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLLegendElement { pub struct HTMLLegendElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLLIElement { pub struct HTMLLIElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -21,9 +21,7 @@ use std::ascii::StrAsciiExt;
use url::UrlParser; use url::UrlParser;
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLLinkElement { pub struct HTMLLinkElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLMapElement { pub struct HTMLMapElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -12,9 +12,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::ElementNodeTypeId; use dom::node::ElementNodeTypeId;
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLMediaElement { pub struct HTMLMediaElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLMetaElement { pub struct HTMLMetaElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLMeterElement { pub struct HTMLMeterElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLModElement { pub struct HTMLModElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -25,9 +25,7 @@ use string_cache::Atom;
use url::Url; use url::Url;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLObjectElement { pub struct HTMLObjectElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLOListElement { pub struct HTMLOListElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -18,9 +18,7 @@ use dom::virtualmethods::VirtualMethods;
use servo_util::str::DOMString; use servo_util::str::DOMString;
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLOptGroupElement { pub struct HTMLOptGroupElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -22,9 +22,7 @@ use dom::virtualmethods::VirtualMethods;
use servo_util::str::{DOMString, split_html_space_chars}; use servo_util::str::{DOMString, split_html_space_chars};
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLOptionElement { pub struct HTMLOptionElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -15,9 +15,7 @@ use dom::node::{Node, ElementNodeTypeId, window_from_node};
use dom::validitystate::ValidityState; use dom::validitystate::ValidityState;
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLOutputElement { pub struct HTMLOutputElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLParagraphElement { pub struct HTMLParagraphElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLParamElement { pub struct HTMLParamElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLPreElement { pub struct HTMLPreElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLProgressElement { pub struct HTMLProgressElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLQuoteElement { pub struct HTMLQuoteElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -18,9 +18,7 @@ use dom::node::{Node, NodeHelpers, ElementNodeTypeId};
use servo_util::str::{DOMString, HTML_SPACE_CHARACTERS, StaticStringVec}; use servo_util::str::{DOMString, HTML_SPACE_CHARACTERS, StaticStringVec};
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLScriptElement { pub struct HTMLScriptElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -21,9 +21,7 @@ use dom::virtualmethods::VirtualMethods;
use servo_util::str::DOMString; use servo_util::str::DOMString;
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLSelectElement { pub struct HTMLSelectElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLSourceElement { pub struct HTMLSourceElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLSpanElement { pub struct HTMLSpanElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -17,9 +17,7 @@ use layout_interface::{AddStylesheetMsg, LayoutChan};
use servo_util::str::DOMString; use servo_util::str::DOMString;
use style::Stylesheet; use style::Stylesheet;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLStyleElement { pub struct HTMLStyleElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTableCaptionElement { pub struct HTMLTableCaptionElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -18,9 +18,7 @@ use servo_util::str;
use std::cell::Cell; use std::cell::Cell;
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTableCellElement { pub struct HTMLTableCellElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
width: Cell<LengthOrPercentageOrAuto>, width: Cell<LengthOrPercentageOrAuto>,

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTableColElement { pub struct HTMLTableColElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmltablecellelement::HTMLTableCellElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTableDataCellElement { pub struct HTMLTableDataCellElement {
htmltablecellelement: HTMLTableCellElement, htmltablecellelement: HTMLTableCellElement,
} }

View file

@ -17,9 +17,7 @@ use dom::htmltablecaptionelement::HTMLTableCaptionElement;
use dom::node::{Node, NodeHelpers, ElementNodeTypeId}; use dom::node::{Node, NodeHelpers, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTableElement { pub struct HTMLTableElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmltablecellelement::HTMLTableCellElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTableHeaderCellElement { pub struct HTMLTableHeaderCellElement {
htmltablecellelement: HTMLTableCellElement, htmltablecellelement: HTMLTableCellElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTableRowElement { pub struct HTMLTableRowElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTableSectionElement { pub struct HTMLTableSectionElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTemplateElement { pub struct HTMLTemplateElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -18,9 +18,7 @@ use dom::virtualmethods::VirtualMethods;
use servo_util::str::DOMString; use servo_util::str::DOMString;
use string_cache::Atom; use string_cache::Atom;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTextAreaElement { pub struct HTMLTextAreaElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTimeElement { pub struct HTMLTimeElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -16,9 +16,7 @@ use dom::node::{Node, NodeHelpers, ElementNodeTypeId};
use dom::text::Text; use dom::text::Text;
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTitleElement { pub struct HTMLTitleElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLTrackElement { pub struct HTMLTrackElement {
htmlelement: HTMLElement, htmlelement: HTMLElement,
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLUListElement { pub struct HTMLUListElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlelement::HTMLElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLUnknownElement { pub struct HTMLUnknownElement {
htmlelement: HTMLElement htmlelement: HTMLElement
} }

View file

@ -13,9 +13,7 @@ use dom::htmlmediaelement::HTMLMediaElement;
use dom::node::{Node, ElementNodeTypeId}; use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct HTMLVideoElement { pub struct HTMLVideoElement {
htmlmediaelement: HTMLMediaElement htmlmediaelement: HTMLMediaElement
} }

View file

@ -15,9 +15,7 @@ use servo_util::str::DOMString;
use std::rc::Rc; use std::rc::Rc;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct Location { pub struct Location {
reflector_: Reflector, reflector_: Reflector,
page: Rc<Page>, page: Rc<Page>,

View file

@ -18,9 +18,7 @@ use servo_util::str::DOMString;
use js::jsapi::JSContext; use js::jsapi::JSContext;
use js::jsval::JSVal; use js::jsval::JSVal;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct MessageEvent { pub struct MessageEvent {
event: Event, event: Event,
data: JSVal, data: JSVal,

View file

@ -19,9 +19,7 @@ use servo_util::str::DOMString;
use std::cell::Cell; use std::cell::Cell;
use std::default::Default; use std::default::Default;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct MouseEvent { pub struct MouseEvent {
mouseevent: UIEvent, mouseevent: UIEvent,
screen_x: Cell<i32>, screen_x: Cell<i32>,

View file

@ -11,9 +11,7 @@ use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::element::Element; use dom::element::Element;
use dom::window::Window; use dom::window::Window;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct NamedNodeMap { pub struct NamedNodeMap {
reflector_: Reflector, reflector_: Reflector,
owner: JS<Element>, owner: JS<Element>,

View file

@ -11,9 +11,7 @@ use dom::navigatorinfo::NavigatorInfo;
use dom::window::Window; use dom::window::Window;
use servo_util::str::DOMString; use servo_util::str::DOMString;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct Navigator { pub struct Navigator {
reflector_: Reflector, reflector_: Reflector,
} }

View file

@ -71,9 +71,7 @@ use uuid;
// //
/// An HTML node. /// An HTML node.
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct Node { pub struct Node {
/// The JavaScript reflector for this node. /// The JavaScript reflector for this node.
eventtarget: EventTarget, eventtarget: EventTarget,

View file

@ -8,9 +8,7 @@ use dom::bindings::global::GlobalRef;
use dom::bindings::js::{JSRef, Temporary}; use dom::bindings::js::{JSRef, Temporary};
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object}; use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct NodeIterator { pub struct NodeIterator {
reflector_: Reflector reflector_: Reflector
} }

View file

@ -17,9 +17,7 @@ pub enum NodeListType {
Children(JS<Node>) Children(JS<Node>)
} }
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct NodeList { pub struct NodeList {
list_type: NodeListType, list_type: NodeListType,
reflector_: Reflector, reflector_: Reflector,

View file

@ -13,9 +13,7 @@ use time;
pub type DOMHighResTimeStamp = f64; pub type DOMHighResTimeStamp = f64;
#[jstraceable] #[dom_struct]
#[must_root]
#[privatize]
pub struct Performance { pub struct Performance {
reflector_: Reflector, reflector_: Reflector,
timing: JS<PerformanceTiming>, timing: JS<PerformanceTiming>,

Some files were not shown because too many files have changed in this diff Show more