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]
#[must_root]
#[privatize]
#[dom_struct]
pub struct Attr {
reflector_: Reflector,
local_name: Atom,

View file

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

View file

@ -65,9 +65,7 @@ impl BrowserContext {
}
}
#[jstraceable]
#[must_root]
#[privatize]
#[dom_struct]
pub struct SessionHistoryEntry {
document: JS<Document>,
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};
#[jstraceable]
#[must_root]
#[privatize]
#[dom_struct]
pub struct CanvasRenderingContext2D {
reflector_: Reflector,
global: GlobalField,

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -10,9 +10,7 @@ use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::domrect::DOMRect;
use dom::window::Window;
#[jstraceable]
#[must_root]
#[privatize]
#[dom_struct]
pub struct DOMRectList {
reflector_: Reflector,
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 string_cache::Atom;
#[jstraceable]
#[must_root]
#[privatize]
#[dom_struct]
pub struct DOMTokenList {
reflector_: Reflector,
element: JS<Element>,

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -19,9 +19,7 @@ use servo_util::str::DOMString;
use std::cell::Cell;
use std::default::Default;
#[jstraceable]
#[must_root]
#[privatize]
#[dom_struct]
pub struct MouseEvent {
mouseevent: UIEvent,
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::window::Window;
#[jstraceable]
#[must_root]
#[privatize]
#[dom_struct]
pub struct NamedNodeMap {
reflector_: Reflector,
owner: JS<Element>,

View file

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

View file

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

View file

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

View file

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

View file

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

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