mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
parent
af4c3901d8
commit
fd87c8cb3e
155 changed files with 3 additions and 226 deletions
|
@ -17,6 +17,7 @@ pub fn expand_dom_struct(cx: &mut ExtCtxt, sp: Span, _: &MetaItem, anno: Annotat
|
|||
item2.attrs.push(quote_attr!(cx, #[must_root]));
|
||||
item2.attrs.push(quote_attr!(cx, #[privatize]));
|
||||
item2.attrs.push(quote_attr!(cx, #[derive(JSTraceable)]));
|
||||
item2.attrs.push(quote_attr!(cx, #[derive(HeapSizeOf)]));
|
||||
|
||||
// The following attributes are only for internal usage
|
||||
item2.attrs.push(quote_attr!(cx, #[_generate_reflector]));
|
||||
|
|
|
@ -111,7 +111,6 @@ impl Deref for AttrValue {
|
|||
|
||||
// https://dom.spec.whatwg.org/#interface-attr
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct Attr {
|
||||
reflector_: Reflector,
|
||||
local_name: Atom,
|
||||
|
|
|
@ -207,6 +207,7 @@ impl MutHeapJSVal {
|
|||
/// `JS<T>`.
|
||||
#[must_root]
|
||||
#[derive(JSTraceable)]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct MutHeap<T: HeapGCValue + Copy> {
|
||||
val: Cell<T>,
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ pub enum BlobTypeId {
|
|||
|
||||
// http://dev.w3.org/2006/webapi/FileAPI/#blob
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct Blob {
|
||||
reflector_: Reflector,
|
||||
type_: BlobTypeId,
|
||||
|
|
|
@ -16,7 +16,6 @@ use dom::canvasrenderingcontext2d::parse_color;
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#canvasgradient
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct CanvasGradient {
|
||||
reflector_: Reflector,
|
||||
style: CanvasGradientStyle,
|
||||
|
|
|
@ -12,7 +12,6 @@ use euclid::size::Size2D;
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#canvaspattern
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct CanvasPattern {
|
||||
reflector_: Reflector,
|
||||
surface_data: Vec<u8>,
|
||||
|
|
|
@ -61,7 +61,6 @@ pub enum CanvasFillOrStrokeStyle {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#canvasrenderingcontext2d
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct CanvasRenderingContext2D {
|
||||
reflector_: Reflector,
|
||||
global: GlobalField,
|
||||
|
|
|
@ -24,7 +24,6 @@ use std::cell::Ref;
|
|||
|
||||
// https://dom.spec.whatwg.org/#characterdata
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct CharacterData {
|
||||
node: Node,
|
||||
data: DOMRefCell<DOMString>,
|
||||
|
|
|
@ -16,7 +16,6 @@ use script_task::ScriptChan;
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct CloseEvent {
|
||||
event: Event,
|
||||
wasClean: bool,
|
||||
|
|
|
@ -16,7 +16,6 @@ use util::str::DOMString;
|
|||
|
||||
/// An HTML comment.
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct Comment {
|
||||
characterdata: CharacterData,
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl Comment {
|
|||
Ok(Comment::new(data, document.r()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use util::str::DOMString;
|
|||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/Console
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct Console {
|
||||
reflector_: Reflector,
|
||||
global: GlobalField,
|
||||
|
|
|
@ -22,7 +22,6 @@ no_jsmanaged_fields!(OsRng);
|
|||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/Crypto
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct Crypto {
|
||||
reflector_: Reflector,
|
||||
rng: DOMRefCell<OsRng>,
|
||||
|
|
|
@ -10,7 +10,6 @@ use util::str::DOMString;
|
|||
use cssparser::serialize_identifier;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct CSS {
|
||||
reflector_: Reflector,
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@ use std::cell::Ref;
|
|||
|
||||
// http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct CSSStyleDeclaration {
|
||||
reflector_: Reflector,
|
||||
owner: JS<Element>,
|
||||
|
|
|
@ -17,7 +17,6 @@ use util::str::DOMString;
|
|||
|
||||
// https://dom.spec.whatwg.org/#interface-customevent
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct CustomEvent {
|
||||
event: Event,
|
||||
#[ignore_heap_size_of = "Defined in rust-mozjs"]
|
||||
|
@ -85,4 +84,3 @@ impl<'a> CustomEventMethods for &'a CustomEvent {
|
|||
event.InitEvent(type_, can_bubble, cancelable);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -138,7 +138,6 @@ enum MixedMessage {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#dedicatedworkerglobalscope
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DedicatedWorkerGlobalScope {
|
||||
workerglobalscope: WorkerGlobalScope,
|
||||
id: PipelineId,
|
||||
|
|
|
@ -113,7 +113,6 @@ pub enum IsHTMLDocument {
|
|||
|
||||
// https://dom.spec.whatwg.org/#document
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct Document {
|
||||
node: Node,
|
||||
window: JS<Window>,
|
||||
|
|
|
@ -21,7 +21,6 @@ use util::str::DOMString;
|
|||
|
||||
// https://dom.spec.whatwg.org/#documentfragment
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DocumentFragment {
|
||||
node: Node,
|
||||
}
|
||||
|
@ -96,4 +95,3 @@ impl<'a> DocumentFragmentMethods for &'a DocumentFragment {
|
|||
root.query_selector_all(selectors)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ use std::borrow::ToOwned;
|
|||
// https://dom.spec.whatwg.org/#documenttype
|
||||
/// The `DOCTYPE` tag.
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DocumentType {
|
||||
node: Node,
|
||||
name: DOMString,
|
||||
|
@ -111,4 +110,3 @@ impl<'a> DocumentTypeMethods for &'a DocumentType {
|
|||
node.remove_self();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,6 @@ pub enum DOMErrorName {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DOMException {
|
||||
reflector_: Reflector,
|
||||
code: DOMErrorName,
|
||||
|
|
|
@ -27,7 +27,6 @@ use std::borrow::ToOwned;
|
|||
|
||||
// https://dom.spec.whatwg.org/#domimplementation
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DOMImplementation {
|
||||
reflector_: Reflector,
|
||||
document: JS<Document>,
|
||||
|
|
|
@ -21,7 +21,6 @@ use util::str::DOMString;
|
|||
use std::borrow::ToOwned;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DOMParser {
|
||||
reflector_: Reflector,
|
||||
window: JS<Window>, //XXXjdm Document instead?
|
||||
|
@ -81,4 +80,3 @@ impl<'a> DOMParserMethods for &'a DOMParser {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ use dom::dompointreadonly::{DOMPointReadOnly, DOMPointWriteMethods};
|
|||
|
||||
// http://dev.w3.org/fxtf/geometry/Overview.html#dompoint
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DOMPoint {
|
||||
point: DOMPointReadOnly
|
||||
}
|
||||
|
@ -75,4 +74,3 @@ impl<'a> DOMPointMethods for &'a DOMPoint {
|
|||
self.point.SetW(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ use std::cell::Cell;
|
|||
|
||||
// http://dev.w3.org/fxtf/geometry/Overview.html#dompointreadonly
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DOMPointReadOnly {
|
||||
reflector_: Reflector,
|
||||
x: Cell<f64>,
|
||||
|
|
|
@ -12,7 +12,6 @@ use dom::window::Window;
|
|||
use util::geometry::Au;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DOMRect {
|
||||
reflector_: Reflector,
|
||||
top: f32,
|
||||
|
@ -74,4 +73,3 @@ impl<'a> DOMRectMethods for &'a DOMRect {
|
|||
Finite::wrap(result)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ use dom::domrect::DOMRect;
|
|||
use dom::window::Window;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DOMRectList {
|
||||
reflector_: Reflector,
|
||||
rects: Vec<JS<DOMRect>>,
|
||||
|
@ -55,4 +54,3 @@ impl<'a> DOMRectListMethods for &'a DOMRectList {
|
|||
self.Item(index)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::window_from_node;
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DOMStringMap {
|
||||
reflector_: Reflector,
|
||||
element: JS<HTMLElement>,
|
||||
|
|
|
@ -19,7 +19,6 @@ use util::str::{DOMString, HTML_SPACE_CHARACTERS, str_join};
|
|||
use std::borrow::ToOwned;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct DOMTokenList {
|
||||
reflector_: Reflector,
|
||||
element: JS<Element>,
|
||||
|
|
|
@ -92,7 +92,6 @@ use std::mem;
|
|||
use std::sync::Arc;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct Element {
|
||||
node: Node,
|
||||
local_name: Atom,
|
||||
|
|
|
@ -22,7 +22,6 @@ use std::borrow::ToOwned;
|
|||
use std::cell::Cell;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct ErrorEvent {
|
||||
event: Event,
|
||||
message: DOMRefCell<DOMString>,
|
||||
|
|
|
@ -54,7 +54,6 @@ pub enum EventCancelable {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct Event {
|
||||
reflector_: Reflector,
|
||||
type_id: EventTypeId,
|
||||
|
|
|
@ -130,7 +130,6 @@ pub struct EventListenerEntry {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct EventTarget {
|
||||
reflector_: Reflector,
|
||||
type_id: EventTargetTypeId,
|
||||
|
|
|
@ -11,7 +11,6 @@ use dom::blob::{Blob, BlobTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct File {
|
||||
blob: Blob,
|
||||
name: DOMString,
|
||||
|
@ -46,4 +45,3 @@ impl<'a> FileMethods for &'a File {
|
|||
self.name.clone()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ use dom::window::Window;
|
|||
|
||||
// https://w3c.github.io/FileAPI/#dfn-filelist
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct FileList {
|
||||
reflector_: Reflector,
|
||||
list: Vec<JS<File>>
|
||||
|
@ -49,4 +48,3 @@ impl<'a> FileListMethods for &'a FileList {
|
|||
item
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,6 @@ pub enum FileReaderReadyState {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct FileReader {
|
||||
eventtarget: EventTarget,
|
||||
global: GlobalField,
|
||||
|
|
|
@ -30,7 +30,6 @@ pub enum FormDatum {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct FormData {
|
||||
reflector_: Reflector,
|
||||
data: DOMRefCell<HashMap<DOMString, Vec<FormDatum>>>,
|
||||
|
|
|
@ -33,7 +33,6 @@ use url::UrlParser;
|
|||
use std::default::Default;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLAnchorElement {
|
||||
htmlelement: HTMLElement,
|
||||
rel_list: MutNullableHeap<JS<DOMTokenList>>,
|
||||
|
|
|
@ -20,7 +20,6 @@ use string_cache::Atom;
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLAppletElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
|
|
@ -22,7 +22,6 @@ use string_cache::Atom;
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLAreaElement {
|
||||
htmlelement: HTMLElement,
|
||||
rel_list: MutNullableHeap<JS<DOMTokenList>>,
|
||||
|
|
|
@ -14,7 +14,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLAudioElement {
|
||||
htmlmediaelement: HTMLMediaElement
|
||||
}
|
||||
|
@ -46,4 +45,3 @@ impl HTMLAudioElement {
|
|||
Node::reflect_node(box element, document, HTMLAudioElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ use util::str::DOMString;
|
|||
use url::{Url, UrlParser};
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLBaseElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ use time;
|
|||
const INITIAL_REFLOW_DELAY: u64 = 200_000_000;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLBodyElement {
|
||||
htmlelement: HTMLElement,
|
||||
background_color: Cell<Option<RGBA>>,
|
||||
|
@ -183,4 +182,3 @@ impl VirtualMethods for HTMLBodyElement {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLBRElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -41,4 +40,3 @@ impl HTMLBRElement {
|
|||
Node::reflect_node(box element, document, HTMLBRElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ enum ButtonType {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLButtonElement {
|
||||
htmlelement: HTMLElement,
|
||||
button_type: Cell<ButtonType>
|
||||
|
@ -253,4 +252,3 @@ impl<'a> Activatable for &'a HTMLButtonElement {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ pub enum CanvasContext {
|
|||
impl HeapGCValue for CanvasContext {}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLCanvasElement {
|
||||
htmlelement: HTMLElement,
|
||||
context: MutNullableHeap<CanvasContext>,
|
||||
|
@ -340,4 +339,3 @@ pub mod utils {
|
|||
result.image_response
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ pub trait CollectionFilter : JSTraceable {
|
|||
pub struct Collection(JS<Node>, Box<CollectionFilter + 'static>);
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLCollection {
|
||||
reflector_: Reflector,
|
||||
#[ignore_heap_size_of = "Contains a trait object; can't measure due to #6870"]
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLDataElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -43,4 +42,3 @@ impl HTMLDataElement {
|
|||
Node::reflect_node(box element, document, HTMLDataElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ use dom::node::{Node, NodeTypeId, window_from_node};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLDataListElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -65,4 +64,3 @@ impl<'a> HTMLDataListElementMethods for &'a HTMLDataListElement {
|
|||
HTMLCollection::create(window.r(), node, filter)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ use util::str::DOMString;
|
|||
use std::borrow::ToOwned;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLDialogElement {
|
||||
htmlelement: HTMLElement,
|
||||
return_value: DOMRefCell<DOMString>,
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLDirectoryElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLDirectoryElement {
|
|||
Node::reflect_node(box element, document, HTMLDirectoryElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLDivElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -43,4 +42,3 @@ impl HTMLDivElement {
|
|||
Node::reflect_node(box element, document, HTMLDivElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLDListElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -42,4 +41,3 @@ impl HTMLDListElement {
|
|||
Node::reflect_node(box element, document, HTMLDListElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ use std::intrinsics;
|
|||
use std::rc::Rc;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLElement {
|
||||
element: Element,
|
||||
style_decl: MutNullableHeap<JS<CSSStyleDeclaration>>,
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLEmbedElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -41,4 +40,3 @@ impl HTMLEmbedElement {
|
|||
Node::reflect_node(box element, document, HTMLEmbedElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ use dom::virtualmethods::VirtualMethods;
|
|||
use util::str::{DOMString, StaticStringVec};
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLFieldSetElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -171,4 +170,3 @@ impl VirtualMethods for HTMLFieldSetElement {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ use cssparser::RGBA;
|
|||
use std::cell::Cell;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLFontElement {
|
||||
htmlelement: HTMLElement,
|
||||
color: Cell<Option<RGBA>>,
|
||||
|
@ -95,4 +94,3 @@ impl HTMLFontElementHelpers for HTMLFontElement {
|
|||
self.color.get()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ use std::borrow::ToOwned;
|
|||
use std::cell::Cell;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLFormElement {
|
||||
htmlelement: HTMLElement,
|
||||
marked_for_reset: Cell<bool>,
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLFrameElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -41,4 +40,3 @@ impl HTMLFrameElement {
|
|||
Node::reflect_node(box element, document, HTMLFrameElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLFrameSetElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLFrameSetElement {
|
|||
Node::reflect_node(box element, document, HTMLFrameSetElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ use dom::virtualmethods::VirtualMethods;
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLHeadElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
|
|
@ -23,7 +23,6 @@ pub enum HeadingLevel {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLHeadingElement {
|
||||
htmlelement: HTMLElement,
|
||||
level: HeadingLevel,
|
||||
|
@ -58,4 +57,3 @@ impl HTMLHeadingElement {
|
|||
Node::reflect_node(box element, document, HTMLHeadingElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLHRElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -41,4 +40,3 @@ impl HTMLHRElement {
|
|||
Node::reflect_node(box element, document, HTMLHRElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLHtmlElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -41,4 +40,3 @@ impl HTMLHtmlElement {
|
|||
Node::reflect_node(box element, document, HTMLHtmlElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,6 @@ enum SandboxAllowance {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLIFrameElement {
|
||||
htmlelement: HTMLElement,
|
||||
subpage_id: Cell<Option<SubpageId>>,
|
||||
|
|
|
@ -37,7 +37,6 @@ use std::borrow::ToOwned;
|
|||
use std::sync::Arc;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLImageElement {
|
||||
htmlelement: HTMLElement,
|
||||
url: DOMRefCell<Option<Url>>,
|
||||
|
|
|
@ -60,7 +60,6 @@ enum InputType {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLInputElement {
|
||||
htmlelement: HTMLElement,
|
||||
input_type: Cell<InputType>,
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLLabelElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLLabelElement {
|
|||
Node::reflect_node(box element, document, HTMLLabelElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLLegendElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLLegendElement {
|
|||
Node::reflect_node(box element, document, HTMLLegendElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLLIElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -41,4 +40,3 @@ impl HTMLLIElement {
|
|||
Node::reflect_node(box element, document, HTMLLIElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ use string_cache::Atom;
|
|||
use url::UrlParser;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLLinkElement {
|
||||
htmlelement: HTMLElement,
|
||||
rel_list: MutNullableHeap<JS<DOMTokenList>>,
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLMapElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -43,4 +42,3 @@ impl HTMLMapElement {
|
|||
Node::reflect_node(box element, document, HTMLMapElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ use dom::node::NodeTypeId;
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLMediaElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -54,4 +53,3 @@ impl PartialEq for HTMLMediaElementTypeId {
|
|||
(*self as u8) == (*other as u8)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLMetaElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLMeterElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -43,4 +42,3 @@ impl HTMLMeterElement {
|
|||
Node::reflect_node(box element, document, HTMLMeterElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLModElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLModElement {
|
|||
Node::reflect_node(box element, document, HTMLModElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ use std::sync::Arc;
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLObjectElement {
|
||||
htmlelement: HTMLElement,
|
||||
image: DOMRefCell<Option<Arc<Image>>>,
|
||||
|
@ -118,4 +117,3 @@ impl VirtualMethods for HTMLObjectElement {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLOListElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -43,4 +42,3 @@ impl HTMLOListElement {
|
|||
Node::reflect_node(box element, document, HTMLOListElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ use dom::virtualmethods::VirtualMethods;
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLOptGroupElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -107,4 +106,3 @@ impl VirtualMethods for HTMLOptGroupElement {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@ use dom::virtualmethods::VirtualMethods;
|
|||
use util::str::{DOMString, split_html_space_chars};
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLOptionElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -187,4 +186,3 @@ impl VirtualMethods for HTMLOptionElement {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ use dom::validitystate::ValidityState;
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLOutputElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -54,4 +53,3 @@ impl<'a> HTMLOutputElementMethods for &'a HTMLOutputElement {
|
|||
ValidityState::new(window.r())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLParagraphElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLParagraphElement {
|
|||
Node::reflect_node(box element, document, HTMLParagraphElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLParamElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLParamElement {
|
|||
Node::reflect_node(box element, document, HTMLParamElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLPreElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLPreElement {
|
|||
Node::reflect_node(box element, document, HTMLPreElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLProgressElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLProgressElement {
|
|||
Node::reflect_node(box element, document, HTMLProgressElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLQuoteElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLQuoteElement {
|
|||
Node::reflect_node(box element, document, HTMLQuoteElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,6 @@ use url::{Url, UrlParser};
|
|||
use util::str::{DOMString, HTML_SPACE_CHARACTERS, StaticStringVec};
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLScriptElement {
|
||||
htmlelement: HTMLElement,
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ use util::str::DOMString;
|
|||
use std::borrow::ToOwned;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLSelectElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -171,4 +170,3 @@ impl VirtualMethods for HTMLSelectElement {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLSourceElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLSourceElement {
|
|||
Node::reflect_node(box element, document, HTMLSourceElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLSpanElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -41,4 +40,3 @@ impl HTMLSpanElement {
|
|||
Node::reflect_node(box element, document, HTMLSpanElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ use style::stylesheets::{Origin, Stylesheet};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLStyleElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -108,4 +107,3 @@ impl VirtualMethods for HTMLStyleElement {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLTableCaptionElement {
|
||||
htmlelement: HTMLElement
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLTableCaptionElement {
|
|||
Node::reflect_node(box element, document, HTMLTableCaptionElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ impl PartialEq for HTMLTableCellElementTypeId {
|
|||
}
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLTableCellElement {
|
||||
htmlelement: HTMLElement,
|
||||
background_color: Cell<Option<RGBA>>,
|
||||
|
@ -149,4 +148,3 @@ impl VirtualMethods for HTMLTableCellElement {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLTableColElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLTableColElement {
|
|||
Node::reflect_node(box element, document, HTMLTableColElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLTableDataCellElement {
|
||||
htmltablecellelement: HTMLTableCellElement,
|
||||
}
|
||||
|
@ -49,4 +48,3 @@ impl HTMLTableDataCellElement {
|
|||
HTMLTableDataCellElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ use string_cache::Atom;
|
|||
use std::cell::Cell;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLTableElement {
|
||||
htmlelement: HTMLElement,
|
||||
background_color: Cell<Option<RGBA>>,
|
||||
|
@ -207,4 +206,3 @@ impl VirtualMethods for HTMLTableElement {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLTableHeaderCellElement {
|
||||
htmltablecellelement: HTMLTableCellElement,
|
||||
}
|
||||
|
@ -46,4 +45,3 @@ impl HTMLTableHeaderCellElement {
|
|||
Node::reflect_node(box element, document, HTMLTableHeaderCellElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ use std::cell::Cell;
|
|||
use util::str::{self, DOMString};
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLTableRowElement {
|
||||
htmlelement: HTMLElement,
|
||||
background_color: Cell<Option<RGBA>>,
|
||||
|
|
|
@ -18,7 +18,6 @@ use std::cell::Cell;
|
|||
use util::str::{self, DOMString};
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLTableSectionElement {
|
||||
htmlelement: HTMLElement,
|
||||
background_color: Cell<Option<RGBA>>,
|
||||
|
|
|
@ -13,7 +13,6 @@ use dom::node::{Node, NodeTypeId};
|
|||
use util::str::DOMString;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLTemplateElement {
|
||||
htmlelement: HTMLElement,
|
||||
}
|
||||
|
@ -44,4 +43,3 @@ impl HTMLTemplateElement {
|
|||
Node::reflect_node(box element, document, HTMLTemplateElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ use std::borrow::ToOwned;
|
|||
use std::cell::Cell;
|
||||
|
||||
#[dom_struct]
|
||||
#[derive(HeapSizeOf)]
|
||||
pub struct HTMLTextAreaElement {
|
||||
htmlelement: HTMLElement,
|
||||
#[ignore_heap_size_of = "#7193"]
|
||||
|
|
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