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]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct Attr {
|
||||
reflector_: Reflector,
|
||||
local_name: Atom,
|
||||
|
|
|
@ -15,9 +15,7 @@ pub enum BlobType {
|
|||
FileTypeId
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct Blob {
|
||||
reflector_: Reflector,
|
||||
type_: BlobType
|
||||
|
|
|
@ -65,9 +65,7 @@ impl BrowserContext {
|
|||
}
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct SessionHistoryEntry {
|
||||
document: JS<Document>,
|
||||
children: Vec<BrowserContext>
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -73,9 +73,7 @@ pub enum IsHTMLDocument {
|
|||
NonHTMLDocument,
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct Document {
|
||||
node: Node,
|
||||
window: JS<Window>,
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -61,9 +61,7 @@ impl DOMErrorName {
|
|||
}
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct DOMException {
|
||||
code: DOMErrorName,
|
||||
reflector_: Reflector
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>>,
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -47,9 +47,7 @@ pub enum EventCancelable {
|
|||
NotCancelable
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct Event {
|
||||
type_id: EventTypeId,
|
||||
reflector_: Reflector,
|
||||
|
|
|
@ -65,9 +65,7 @@ pub struct EventListenerEntry {
|
|||
listener: EventListenerType
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct EventTarget {
|
||||
type_id: EventTargetTypeId,
|
||||
reflector_: Reflector,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -21,9 +21,7 @@ use dom::virtualmethods::VirtualMethods;
|
|||
|
||||
use servo_util::str::DOMString;
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct HTMLAnchorElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -23,9 +23,7 @@ pub enum HeadingLevel {
|
|||
Heading6,
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct HTMLHeadingElement {
|
||||
htmlelement: HTMLElement,
|
||||
level: HeadingLevel,
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -39,9 +39,7 @@ enum SandboxAllowance {
|
|||
AllowPopups = 0x20
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct HTMLIFrameElement {
|
||||
htmlelement: HTMLElement,
|
||||
size: Cell<Option<IFrameSize>>,
|
||||
|
|
|
@ -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>>,
|
||||
|
|
|
@ -44,9 +44,7 @@ enum InputType {
|
|||
InputPassword
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct HTMLInputElement {
|
||||
htmlelement: HTMLElement,
|
||||
input_type: Cell<InputType>,
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -25,9 +25,7 @@ use string_cache::Atom;
|
|||
|
||||
use url::Url;
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct HTMLObjectElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -17,9 +17,7 @@ pub enum NodeListType {
|
|||
Children(JS<Node>)
|
||||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
#[privatize]
|
||||
#[dom_struct]
|
||||
pub struct NodeList {
|
||||
list_type: NodeListType,
|
||||
reflector_: Reflector,
|
||||
|
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue