mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Use #[dom_struct] everywhere
This commit is contained in:
parent
c45550de73
commit
3f2cbb275b
119 changed files with 119 additions and 357 deletions
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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>>,
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>>,
|
||||||
|
|
|
@ -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>>,
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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>,
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue