diff options
Diffstat (limited to 'components/script')
103 files changed, 103 insertions, 103 deletions
diff --git a/components/script/dom/canvasrenderingcontext2d.rs b/components/script/dom/canvasrenderingcontext2d.rs index cf6b8c58704..7cf9b6c217c 100644 --- a/components/script/dom/canvasrenderingcontext2d.rs +++ b/components/script/dom/canvasrenderingcontext2d.rs @@ -26,7 +26,7 @@ pub struct CanvasRenderingContext2D { } impl CanvasRenderingContext2D { - pub fn new_inherited(global: &GlobalRef, canvas: JSRef<HTMLCanvasElement>, size: Size2D<i32>) -> CanvasRenderingContext2D { + fn new_inherited(global: &GlobalRef, canvas: JSRef<HTMLCanvasElement>, size: Size2D<i32>) -> CanvasRenderingContext2D { CanvasRenderingContext2D { reflector_: Reflector::new(), global: GlobalField::from_rooted(global), diff --git a/components/script/dom/comment.rs b/components/script/dom/comment.rs index e2ac14ba2f5..a2c3c84a6a8 100644 --- a/components/script/dom/comment.rs +++ b/components/script/dom/comment.rs @@ -29,7 +29,7 @@ impl CommentDerived for EventTarget { } impl Comment { - pub fn new_inherited(text: DOMString, document: JSRef<Document>) -> Comment { + fn new_inherited(text: DOMString, document: JSRef<Document>) -> Comment { Comment { characterdata: CharacterData::new_inherited(CommentNodeTypeId, text, document) } diff --git a/components/script/dom/console.rs b/components/script/dom/console.rs index 015939d9ad6..cefb8cfaa87 100644 --- a/components/script/dom/console.rs +++ b/components/script/dom/console.rs @@ -16,7 +16,7 @@ pub struct Console { } impl Console { - pub fn new_inherited() -> Console { + fn new_inherited() -> Console { Console { reflector_: Reflector::new() } diff --git a/components/script/dom/customevent.rs b/components/script/dom/customevent.rs index 37868e11432..a89c195b6ca 100644 --- a/components/script/dom/customevent.rs +++ b/components/script/dom/customevent.rs @@ -32,7 +32,7 @@ impl CustomEventDerived for Event { } impl CustomEvent { - pub fn new_inherited(type_id: EventTypeId) -> CustomEvent { + fn new_inherited(type_id: EventTypeId) -> CustomEvent { CustomEvent { event: Event::new_inherited(type_id), detail: Traceable::new(Cell::new(Traceable::new(NullValue()))), diff --git a/components/script/dom/dedicatedworkerglobalscope.rs b/components/script/dom/dedicatedworkerglobalscope.rs index b7e700158d4..11156bdf1e6 100644 --- a/components/script/dom/dedicatedworkerglobalscope.rs +++ b/components/script/dom/dedicatedworkerglobalscope.rs @@ -47,7 +47,7 @@ pub struct DedicatedWorkerGlobalScope { } impl DedicatedWorkerGlobalScope { - pub fn new_inherited(worker_url: Url, + fn new_inherited(worker_url: Url, worker: TrustedWorkerAddress, cx: Rc<Cx>, resource_task: ResourceTask, diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index f0af5f5abc0..87bef79fedc 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -277,7 +277,7 @@ impl<'a> DocumentHelpers for JSRef<'a, Document> { } impl Document { - pub fn new_inherited(window: JSRef<Window>, + fn new_inherited(window: JSRef<Window>, url: Option<Url>, is_html_document: IsHTMLDocument, content_type: Option<DOMString>) -> Document { diff --git a/components/script/dom/documentfragment.rs b/components/script/dom/documentfragment.rs index cba1215dde0..40a837125a6 100644 --- a/components/script/dom/documentfragment.rs +++ b/components/script/dom/documentfragment.rs @@ -32,7 +32,7 @@ impl DocumentFragmentDerived for EventTarget { impl DocumentFragment { /// Creates a new DocumentFragment. - pub fn new_inherited(document: JSRef<Document>) -> DocumentFragment { + fn new_inherited(document: JSRef<Document>) -> DocumentFragment { DocumentFragment { node: Node::new_inherited(DocumentFragmentNodeTypeId, document), } diff --git a/components/script/dom/documenttype.rs b/components/script/dom/documenttype.rs index 709a3896a94..8d902a34b26 100644 --- a/components/script/dom/documenttype.rs +++ b/components/script/dom/documenttype.rs @@ -29,7 +29,7 @@ impl DocumentTypeDerived for EventTarget { } impl DocumentType { - pub fn new_inherited(name: DOMString, + fn new_inherited(name: DOMString, public_id: Option<DOMString>, system_id: Option<DOMString>, document: JSRef<Document>) diff --git a/components/script/dom/domexception.rs b/components/script/dom/domexception.rs index 392cff0222d..924494c0455 100644 --- a/components/script/dom/domexception.rs +++ b/components/script/dom/domexception.rs @@ -68,7 +68,7 @@ pub struct DOMException { } impl DOMException { - pub fn new_inherited(code: DOMErrorName) -> DOMException { + fn new_inherited(code: DOMErrorName) -> DOMException { DOMException { code: code, reflector_: Reflector::new() diff --git a/components/script/dom/domimplementation.rs b/components/script/dom/domimplementation.rs index e93d26cb6c9..642de0713a6 100644 --- a/components/script/dom/domimplementation.rs +++ b/components/script/dom/domimplementation.rs @@ -30,7 +30,7 @@ pub struct DOMImplementation { } impl DOMImplementation { - pub fn new_inherited(document: JSRef<Document>) -> DOMImplementation { + fn new_inherited(document: JSRef<Document>) -> DOMImplementation { DOMImplementation { document: JS::from_rooted(document), reflector_: Reflector::new(), diff --git a/components/script/dom/domparser.rs b/components/script/dom/domparser.rs index 50aa923d399..3f9e3bbb827 100644 --- a/components/script/dom/domparser.rs +++ b/components/script/dom/domparser.rs @@ -21,7 +21,7 @@ pub struct DOMParser { } impl DOMParser { - pub fn new_inherited(window: JSRef<Window>) -> DOMParser { + fn new_inherited(window: JSRef<Window>) -> DOMParser { DOMParser { window: JS::from_rooted(window), reflector_: Reflector::new() diff --git a/components/script/dom/domrect.rs b/components/script/dom/domrect.rs index 0cc1770e6d8..2075f64a377 100644 --- a/components/script/dom/domrect.rs +++ b/components/script/dom/domrect.rs @@ -21,7 +21,7 @@ pub struct DOMRect { } impl DOMRect { - pub fn new_inherited(top: Au, bottom: Au, + fn new_inherited(top: Au, bottom: Au, left: Au, right: Au) -> DOMRect { DOMRect { top: top.to_nearest_px() as f32, diff --git a/components/script/dom/domrectlist.rs b/components/script/dom/domrectlist.rs index 8d019a5012c..b85ef800deb 100644 --- a/components/script/dom/domrectlist.rs +++ b/components/script/dom/domrectlist.rs @@ -19,7 +19,7 @@ pub struct DOMRectList { } impl DOMRectList { - pub fn new_inherited(window: JSRef<Window>, + fn new_inherited(window: JSRef<Window>, rects: Vec<JSRef<DOMRect>>) -> DOMRectList { let rects = rects.iter().map(|rect| JS::from_rooted(*rect)).collect(); DOMRectList { diff --git a/components/script/dom/domtokenlist.rs b/components/script/dom/domtokenlist.rs index c7b0ba70360..3d99d9df7eb 100644 --- a/components/script/dom/domtokenlist.rs +++ b/components/script/dom/domtokenlist.rs @@ -25,7 +25,7 @@ pub struct DOMTokenList { } impl DOMTokenList { - pub fn new_inherited(element: JSRef<Element>, + fn new_inherited(element: JSRef<Element>, local_name: &'static str) -> DOMTokenList { DOMTokenList { reflector_: Reflector::new(), diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs index c04dcd526f1..69eaf491d1c 100644 --- a/components/script/dom/file.rs +++ b/components/script/dom/file.rs @@ -19,7 +19,7 @@ pub struct File { } impl File { - pub fn new_inherited(_file_bits: JSRef<Blob>, name: DOMString) -> File { + fn new_inherited(_file_bits: JSRef<Blob>, name: DOMString) -> File { File { blob: Blob::new_inherited(), name: name, diff --git a/components/script/dom/formdata.rs b/components/script/dom/formdata.rs index 51371154b84..093fa205fe8 100644 --- a/components/script/dom/formdata.rs +++ b/components/script/dom/formdata.rs @@ -36,7 +36,7 @@ pub struct FormData { } impl FormData { - pub fn new_inherited(form: Option<JSRef<HTMLFormElement>>, global: &GlobalRef) -> FormData { + fn new_inherited(form: Option<JSRef<HTMLFormElement>>, global: &GlobalRef) -> FormData { FormData { data: Traceable::new(RefCell::new(HashMap::new())), reflector_: Reflector::new(), diff --git a/components/script/dom/htmlanchorelement.rs b/components/script/dom/htmlanchorelement.rs index a545ee189e3..c73cb01a8de 100644 --- a/components/script/dom/htmlanchorelement.rs +++ b/components/script/dom/htmlanchorelement.rs @@ -36,7 +36,7 @@ impl HTMLAnchorElementDerived for EventTarget { } impl HTMLAnchorElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAnchorElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAnchorElement { HTMLAnchorElement { htmlelement: HTMLElement::new_inherited(HTMLAnchorElementTypeId, localName, document) } diff --git a/components/script/dom/htmlappletelement.rs b/components/script/dom/htmlappletelement.rs index 973ac76bd31..ce8e8f70f8a 100644 --- a/components/script/dom/htmlappletelement.rs +++ b/components/script/dom/htmlappletelement.rs @@ -26,7 +26,7 @@ impl HTMLAppletElementDerived for EventTarget { } impl HTMLAppletElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAppletElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAppletElement { HTMLAppletElement { htmlelement: HTMLElement::new_inherited(HTMLAppletElementTypeId, localName, document) } diff --git a/components/script/dom/htmlareaelement.rs b/components/script/dom/htmlareaelement.rs index c6590bf3936..7f9b5c0ccea 100644 --- a/components/script/dom/htmlareaelement.rs +++ b/components/script/dom/htmlareaelement.rs @@ -30,7 +30,7 @@ impl HTMLAreaElementDerived for EventTarget { } impl HTMLAreaElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAreaElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAreaElement { HTMLAreaElement { htmlelement: HTMLElement::new_inherited(HTMLAreaElementTypeId, localName, document) } diff --git a/components/script/dom/htmlaudioelement.rs b/components/script/dom/htmlaudioelement.rs index bd2fbc1f417..b8e73266e5b 100644 --- a/components/script/dom/htmlaudioelement.rs +++ b/components/script/dom/htmlaudioelement.rs @@ -26,7 +26,7 @@ impl HTMLAudioElementDerived for EventTarget { } impl HTMLAudioElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAudioElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLAudioElement { HTMLAudioElement { htmlmediaelement: HTMLMediaElement::new_inherited(HTMLAudioElementTypeId, localName, document) } diff --git a/components/script/dom/htmlbaseelement.rs b/components/script/dom/htmlbaseelement.rs index 7aa7b83f52b..1ed0d2035de 100644 --- a/components/script/dom/htmlbaseelement.rs +++ b/components/script/dom/htmlbaseelement.rs @@ -26,7 +26,7 @@ impl HTMLBaseElementDerived for EventTarget { } impl HTMLBaseElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLBaseElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLBaseElement { HTMLBaseElement { htmlelement: HTMLElement::new_inherited(HTMLBaseElementTypeId, localName, document) } diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs index b09adcb2d17..4835bb64371 100644 --- a/components/script/dom/htmlbodyelement.rs +++ b/components/script/dom/htmlbodyelement.rs @@ -33,7 +33,7 @@ impl HTMLBodyElementDerived for EventTarget { } impl HTMLBodyElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLBodyElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLBodyElement { HTMLBodyElement { htmlelement: HTMLElement::new_inherited(HTMLBodyElementTypeId, localName, document) } diff --git a/components/script/dom/htmlbrelement.rs b/components/script/dom/htmlbrelement.rs index 7b363a938af..ce8997cbf73 100644 --- a/components/script/dom/htmlbrelement.rs +++ b/components/script/dom/htmlbrelement.rs @@ -26,7 +26,7 @@ impl HTMLBRElementDerived for EventTarget { } impl HTMLBRElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLBRElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLBRElement { HTMLBRElement { htmlelement: HTMLElement::new_inherited(HTMLBRElementTypeId, localName, document) } diff --git a/components/script/dom/htmlbuttonelement.rs b/components/script/dom/htmlbuttonelement.rs index d90038c0b14..0a61eaab5f9 100644 --- a/components/script/dom/htmlbuttonelement.rs +++ b/components/script/dom/htmlbuttonelement.rs @@ -32,7 +32,7 @@ impl HTMLButtonElementDerived for EventTarget { } impl HTMLButtonElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLButtonElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLButtonElement { HTMLButtonElement { htmlelement: HTMLElement::new_inherited(HTMLButtonElementTypeId, localName, document) } diff --git a/components/script/dom/htmlcanvaselement.rs b/components/script/dom/htmlcanvaselement.rs index 8609de6425d..f50794d91a8 100644 --- a/components/script/dom/htmlcanvaselement.rs +++ b/components/script/dom/htmlcanvaselement.rs @@ -44,7 +44,7 @@ impl HTMLCanvasElementDerived for EventTarget { } impl HTMLCanvasElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLCanvasElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLCanvasElement { HTMLCanvasElement { htmlelement: HTMLElement::new_inherited(HTMLCanvasElementTypeId, localName, document), context: Traceable::new(Cell::new(None)), diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs index befecda4e11..857dbb2ef5d 100644 --- a/components/script/dom/htmlcollection.rs +++ b/components/script/dom/htmlcollection.rs @@ -37,7 +37,7 @@ pub struct HTMLCollection { } impl HTMLCollection { - pub fn new_inherited(collection: CollectionTypeId) -> HTMLCollection { + fn new_inherited(collection: CollectionTypeId) -> HTMLCollection { HTMLCollection { collection: collection, reflector_: Reflector::new(), diff --git a/components/script/dom/htmldataelement.rs b/components/script/dom/htmldataelement.rs index 9950199045a..180ef7bb5d2 100644 --- a/components/script/dom/htmldataelement.rs +++ b/components/script/dom/htmldataelement.rs @@ -26,7 +26,7 @@ impl HTMLDataElementDerived for EventTarget { } impl HTMLDataElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDataElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDataElement { HTMLDataElement { htmlelement: HTMLElement::new_inherited(HTMLDataElementTypeId, localName, document) } diff --git a/components/script/dom/htmldatalistelement.rs b/components/script/dom/htmldatalistelement.rs index 76ff7449263..491fe958ab9 100644 --- a/components/script/dom/htmldatalistelement.rs +++ b/components/script/dom/htmldatalistelement.rs @@ -29,7 +29,7 @@ impl HTMLDataListElementDerived for EventTarget { } impl HTMLDataListElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDataListElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDataListElement { HTMLDataListElement { htmlelement: HTMLElement::new_inherited(HTMLDataListElementTypeId, localName, document) } diff --git a/components/script/dom/htmldirectoryelement.rs b/components/script/dom/htmldirectoryelement.rs index 38230b88baa..fc7ea59a58b 100644 --- a/components/script/dom/htmldirectoryelement.rs +++ b/components/script/dom/htmldirectoryelement.rs @@ -26,7 +26,7 @@ impl HTMLDirectoryElementDerived for EventTarget { } impl HTMLDirectoryElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDirectoryElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDirectoryElement { HTMLDirectoryElement { htmlelement: HTMLElement::new_inherited(HTMLDirectoryElementTypeId, localName, document) } diff --git a/components/script/dom/htmldivelement.rs b/components/script/dom/htmldivelement.rs index 57ad0ae727a..c1d3ed3d26b 100644 --- a/components/script/dom/htmldivelement.rs +++ b/components/script/dom/htmldivelement.rs @@ -26,7 +26,7 @@ impl HTMLDivElementDerived for EventTarget { } impl HTMLDivElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDivElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDivElement { HTMLDivElement { htmlelement: HTMLElement::new_inherited(HTMLDivElementTypeId, localName, document) } diff --git a/components/script/dom/htmldlistelement.rs b/components/script/dom/htmldlistelement.rs index 2425fcf51cb..72a5fa360f3 100644 --- a/components/script/dom/htmldlistelement.rs +++ b/components/script/dom/htmldlistelement.rs @@ -26,7 +26,7 @@ impl HTMLDListElementDerived for EventTarget { } impl HTMLDListElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDListElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLDListElement { HTMLDListElement { htmlelement: HTMLElement::new_inherited(HTMLDListElementTypeId, localName, document) } diff --git a/components/script/dom/htmlembedelement.rs b/components/script/dom/htmlembedelement.rs index 8829f3606d8..e60f6a2ea80 100644 --- a/components/script/dom/htmlembedelement.rs +++ b/components/script/dom/htmlembedelement.rs @@ -26,7 +26,7 @@ impl HTMLEmbedElementDerived for EventTarget { } impl HTMLEmbedElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLEmbedElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLEmbedElement { HTMLEmbedElement { htmlelement: HTMLElement::new_inherited(HTMLEmbedElementTypeId, localName, document) } diff --git a/components/script/dom/htmlfieldsetelement.rs b/components/script/dom/htmlfieldsetelement.rs index 55322a5001e..167fbbe084e 100644 --- a/components/script/dom/htmlfieldsetelement.rs +++ b/components/script/dom/htmlfieldsetelement.rs @@ -34,7 +34,7 @@ impl HTMLFieldSetElementDerived for EventTarget { } impl HTMLFieldSetElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFieldSetElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFieldSetElement { HTMLFieldSetElement { htmlelement: HTMLElement::new_inherited(HTMLFieldSetElementTypeId, localName, document) } diff --git a/components/script/dom/htmlfontelement.rs b/components/script/dom/htmlfontelement.rs index da8c028d743..0e60a29d808 100644 --- a/components/script/dom/htmlfontelement.rs +++ b/components/script/dom/htmlfontelement.rs @@ -26,7 +26,7 @@ impl HTMLFontElementDerived for EventTarget { } impl HTMLFontElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFontElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFontElement { HTMLFontElement { htmlelement: HTMLElement::new_inherited(HTMLFontElementTypeId, localName, document) } diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index 9607a14b79c..997ed47ca5c 100644 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -26,7 +26,7 @@ impl HTMLFormElementDerived for EventTarget { } impl HTMLFormElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFormElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFormElement { HTMLFormElement { htmlelement: HTMLElement::new_inherited(HTMLFormElementTypeId, localName, document) } diff --git a/components/script/dom/htmlframeelement.rs b/components/script/dom/htmlframeelement.rs index 74a3e3e6628..536e518eed1 100644 --- a/components/script/dom/htmlframeelement.rs +++ b/components/script/dom/htmlframeelement.rs @@ -26,7 +26,7 @@ impl HTMLFrameElementDerived for EventTarget { } impl HTMLFrameElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFrameElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFrameElement { HTMLFrameElement { htmlelement: HTMLElement::new_inherited(HTMLFrameElementTypeId, localName, document) } diff --git a/components/script/dom/htmlframesetelement.rs b/components/script/dom/htmlframesetelement.rs index 2acc94a7fb0..aa25543f802 100644 --- a/components/script/dom/htmlframesetelement.rs +++ b/components/script/dom/htmlframesetelement.rs @@ -26,7 +26,7 @@ impl HTMLFrameSetElementDerived for EventTarget { } impl HTMLFrameSetElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFrameSetElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLFrameSetElement { HTMLFrameSetElement { htmlelement: HTMLElement::new_inherited(HTMLFrameSetElementTypeId, localName, document) } diff --git a/components/script/dom/htmlheadelement.rs b/components/script/dom/htmlheadelement.rs index 87f9e6b5d90..689cf690966 100644 --- a/components/script/dom/htmlheadelement.rs +++ b/components/script/dom/htmlheadelement.rs @@ -26,7 +26,7 @@ impl HTMLHeadElementDerived for EventTarget { } impl HTMLHeadElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLHeadElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLHeadElement { HTMLHeadElement { htmlelement: HTMLElement::new_inherited(HTMLHeadElementTypeId, localName, document) } diff --git a/components/script/dom/htmlheadingelement.rs b/components/script/dom/htmlheadingelement.rs index eb15c49e7bf..b4bf666639e 100644 --- a/components/script/dom/htmlheadingelement.rs +++ b/components/script/dom/htmlheadingelement.rs @@ -37,7 +37,7 @@ impl HTMLHeadingElementDerived for EventTarget { } impl HTMLHeadingElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>, level: HeadingLevel) -> HTMLHeadingElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>, level: HeadingLevel) -> HTMLHeadingElement { HTMLHeadingElement { htmlelement: HTMLElement::new_inherited(HTMLHeadingElementTypeId, localName, document), level: level, diff --git a/components/script/dom/htmlhrelement.rs b/components/script/dom/htmlhrelement.rs index fa1ccaad882..8119a0aa96a 100644 --- a/components/script/dom/htmlhrelement.rs +++ b/components/script/dom/htmlhrelement.rs @@ -26,7 +26,7 @@ impl HTMLHRElementDerived for EventTarget { } impl HTMLHRElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLHRElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLHRElement { HTMLHRElement { htmlelement: HTMLElement::new_inherited(HTMLHRElementTypeId, localName, document) } diff --git a/components/script/dom/htmlhtmlelement.rs b/components/script/dom/htmlhtmlelement.rs index bfc7a3032f3..28bc364fbe3 100644 --- a/components/script/dom/htmlhtmlelement.rs +++ b/components/script/dom/htmlhtmlelement.rs @@ -26,7 +26,7 @@ impl HTMLHtmlElementDerived for EventTarget { } impl HTMLHtmlElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLHtmlElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLHtmlElement { HTMLHtmlElement { htmlelement: HTMLElement::new_inherited(HTMLHtmlElementTypeId, localName, document) } diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index c98db63b58a..7fe653e99e2 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -115,7 +115,7 @@ impl<'a> HTMLIFrameElementHelpers for JSRef<'a, HTMLIFrameElement> { } impl HTMLIFrameElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLIFrameElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLIFrameElement { HTMLIFrameElement { htmlelement: HTMLElement::new_inherited(HTMLIFrameElementTypeId, localName, document), size: Traceable::new(Cell::new(None)), diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs index ad8d4f90093..7ffe03eff81 100644 --- a/components/script/dom/htmlimageelement.rs +++ b/components/script/dom/htmlimageelement.rs @@ -72,7 +72,7 @@ impl<'a> PrivateHTMLImageElementHelpers for JSRef<'a, HTMLImageElement> { } impl HTMLImageElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLImageElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLImageElement { HTMLImageElement { htmlelement: HTMLElement::new_inherited(HTMLImageElementTypeId, localName, document), image: Untraceable::new(RefCell::new(None)), diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs index a4ba607211f..9fafe3c2f63 100644 --- a/components/script/dom/htmlinputelement.rs +++ b/components/script/dom/htmlinputelement.rs @@ -31,7 +31,7 @@ impl HTMLInputElementDerived for EventTarget { } impl HTMLInputElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLInputElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLInputElement { HTMLInputElement { htmlelement: HTMLElement::new_inherited(HTMLInputElementTypeId, localName, document) } diff --git a/components/script/dom/htmllabelelement.rs b/components/script/dom/htmllabelelement.rs index bef4bff77e2..326fd8ab7a1 100644 --- a/components/script/dom/htmllabelelement.rs +++ b/components/script/dom/htmllabelelement.rs @@ -26,7 +26,7 @@ impl HTMLLabelElementDerived for EventTarget { } impl HTMLLabelElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLabelElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLabelElement { HTMLLabelElement { htmlelement: HTMLElement::new_inherited(HTMLLabelElementTypeId, localName, document) } diff --git a/components/script/dom/htmllegendelement.rs b/components/script/dom/htmllegendelement.rs index 2b7b3920796..72a7415bfe5 100644 --- a/components/script/dom/htmllegendelement.rs +++ b/components/script/dom/htmllegendelement.rs @@ -26,7 +26,7 @@ impl HTMLLegendElementDerived for EventTarget { } impl HTMLLegendElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLegendElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLegendElement { HTMLLegendElement { htmlelement: HTMLElement::new_inherited(HTMLLegendElementTypeId, localName, document) } diff --git a/components/script/dom/htmllielement.rs b/components/script/dom/htmllielement.rs index 486a03b0abc..02cd3349909 100644 --- a/components/script/dom/htmllielement.rs +++ b/components/script/dom/htmllielement.rs @@ -26,7 +26,7 @@ impl HTMLLIElementDerived for EventTarget { } impl HTMLLIElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLIElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLIElement { HTMLLIElement { htmlelement: HTMLElement::new_inherited(HTMLLIElementTypeId, localName, document) } diff --git a/components/script/dom/htmllinkelement.rs b/components/script/dom/htmllinkelement.rs index 94a0b7ace0f..cd321b44130 100644 --- a/components/script/dom/htmllinkelement.rs +++ b/components/script/dom/htmllinkelement.rs @@ -35,7 +35,7 @@ impl HTMLLinkElementDerived for EventTarget { } impl HTMLLinkElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLinkElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLLinkElement { HTMLLinkElement { htmlelement: HTMLElement::new_inherited(HTMLLinkElementTypeId, localName, document) } diff --git a/components/script/dom/htmlmapelement.rs b/components/script/dom/htmlmapelement.rs index 2ed56f2c937..8b2e775d6d3 100644 --- a/components/script/dom/htmlmapelement.rs +++ b/components/script/dom/htmlmapelement.rs @@ -26,7 +26,7 @@ impl HTMLMapElementDerived for EventTarget { } impl HTMLMapElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLMapElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLMapElement { HTMLMapElement { htmlelement: HTMLElement::new_inherited(HTMLMapElementTypeId, localName, document) } diff --git a/components/script/dom/htmlmetaelement.rs b/components/script/dom/htmlmetaelement.rs index 92d4f8dff1e..bb4a87065e6 100644 --- a/components/script/dom/htmlmetaelement.rs +++ b/components/script/dom/htmlmetaelement.rs @@ -26,7 +26,7 @@ impl HTMLMetaElementDerived for EventTarget { } impl HTMLMetaElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLMetaElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLMetaElement { HTMLMetaElement { htmlelement: HTMLElement::new_inherited(HTMLMetaElementTypeId, localName, document) } diff --git a/components/script/dom/htmlmeterelement.rs b/components/script/dom/htmlmeterelement.rs index 7ca95646bf2..7fad261f23f 100644 --- a/components/script/dom/htmlmeterelement.rs +++ b/components/script/dom/htmlmeterelement.rs @@ -26,7 +26,7 @@ impl HTMLMeterElementDerived for EventTarget { } impl HTMLMeterElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLMeterElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLMeterElement { HTMLMeterElement { htmlelement: HTMLElement::new_inherited(HTMLMeterElementTypeId, localName, document) } diff --git a/components/script/dom/htmlmodelement.rs b/components/script/dom/htmlmodelement.rs index 50b3f5bf9a0..e7686bb0381 100644 --- a/components/script/dom/htmlmodelement.rs +++ b/components/script/dom/htmlmodelement.rs @@ -26,7 +26,7 @@ impl HTMLModElementDerived for EventTarget { } impl HTMLModElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLModElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLModElement { HTMLModElement { htmlelement: HTMLElement::new_inherited(HTMLModElementTypeId, localName, document) } diff --git a/components/script/dom/htmlobjectelement.rs b/components/script/dom/htmlobjectelement.rs index 5e5f17c8014..49ea7d1a716 100644 --- a/components/script/dom/htmlobjectelement.rs +++ b/components/script/dom/htmlobjectelement.rs @@ -39,7 +39,7 @@ impl HTMLObjectElementDerived for EventTarget { } impl HTMLObjectElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLObjectElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLObjectElement { HTMLObjectElement { htmlelement: HTMLElement::new_inherited(HTMLObjectElementTypeId, localName, document), } diff --git a/components/script/dom/htmlolistelement.rs b/components/script/dom/htmlolistelement.rs index 6764cc5a943..0fa1fac33e4 100644 --- a/components/script/dom/htmlolistelement.rs +++ b/components/script/dom/htmlolistelement.rs @@ -26,7 +26,7 @@ impl HTMLOListElementDerived for EventTarget { } impl HTMLOListElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOListElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOListElement { HTMLOListElement { htmlelement: HTMLElement::new_inherited(HTMLOListElementTypeId, localName, document) } diff --git a/components/script/dom/htmloptgroupelement.rs b/components/script/dom/htmloptgroupelement.rs index 84ccb17506b..974dd047bf4 100644 --- a/components/script/dom/htmloptgroupelement.rs +++ b/components/script/dom/htmloptgroupelement.rs @@ -31,7 +31,7 @@ impl HTMLOptGroupElementDerived for EventTarget { } impl HTMLOptGroupElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOptGroupElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOptGroupElement { HTMLOptGroupElement { htmlelement: HTMLElement::new_inherited(HTMLOptGroupElementTypeId, localName, document) } diff --git a/components/script/dom/htmloptionelement.rs b/components/script/dom/htmloptionelement.rs index ed85a53d1cd..fc889bc855c 100644 --- a/components/script/dom/htmloptionelement.rs +++ b/components/script/dom/htmloptionelement.rs @@ -36,7 +36,7 @@ impl HTMLOptionElementDerived for EventTarget { } impl HTMLOptionElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOptionElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOptionElement { HTMLOptionElement { htmlelement: HTMLElement::new_inherited(HTMLOptionElementTypeId, localName, document) } diff --git a/components/script/dom/htmloutputelement.rs b/components/script/dom/htmloutputelement.rs index bb1ddfd7031..a316bfe821d 100644 --- a/components/script/dom/htmloutputelement.rs +++ b/components/script/dom/htmloutputelement.rs @@ -28,7 +28,7 @@ impl HTMLOutputElementDerived for EventTarget { } impl HTMLOutputElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOutputElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLOutputElement { HTMLOutputElement { htmlelement: HTMLElement::new_inherited(HTMLOutputElementTypeId, localName, document) } diff --git a/components/script/dom/htmlparagraphelement.rs b/components/script/dom/htmlparagraphelement.rs index 2750451d779..b8645e3c35f 100644 --- a/components/script/dom/htmlparagraphelement.rs +++ b/components/script/dom/htmlparagraphelement.rs @@ -26,7 +26,7 @@ impl HTMLParagraphElementDerived for EventTarget { } impl HTMLParagraphElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLParagraphElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLParagraphElement { HTMLParagraphElement { htmlelement: HTMLElement::new_inherited(HTMLParagraphElementTypeId, localName, document) } diff --git a/components/script/dom/htmlparamelement.rs b/components/script/dom/htmlparamelement.rs index 5405220a552..fded20de33f 100644 --- a/components/script/dom/htmlparamelement.rs +++ b/components/script/dom/htmlparamelement.rs @@ -26,7 +26,7 @@ impl HTMLParamElementDerived for EventTarget { } impl HTMLParamElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLParamElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLParamElement { HTMLParamElement { htmlelement: HTMLElement::new_inherited(HTMLParamElementTypeId, localName, document) } diff --git a/components/script/dom/htmlpreelement.rs b/components/script/dom/htmlpreelement.rs index 65f0c412e84..66f914fa405 100644 --- a/components/script/dom/htmlpreelement.rs +++ b/components/script/dom/htmlpreelement.rs @@ -26,7 +26,7 @@ impl HTMLPreElementDerived for EventTarget { } impl HTMLPreElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLPreElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLPreElement { HTMLPreElement { htmlelement: HTMLElement::new_inherited(HTMLPreElementTypeId, localName, document) } diff --git a/components/script/dom/htmlprogresselement.rs b/components/script/dom/htmlprogresselement.rs index c2ef291e942..038fd36530b 100644 --- a/components/script/dom/htmlprogresselement.rs +++ b/components/script/dom/htmlprogresselement.rs @@ -26,7 +26,7 @@ impl HTMLProgressElementDerived for EventTarget { } impl HTMLProgressElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLProgressElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLProgressElement { HTMLProgressElement { htmlelement: HTMLElement::new_inherited(HTMLProgressElementTypeId, localName, document) } diff --git a/components/script/dom/htmlquoteelement.rs b/components/script/dom/htmlquoteelement.rs index d664aeaf139..acc8a9d4357 100644 --- a/components/script/dom/htmlquoteelement.rs +++ b/components/script/dom/htmlquoteelement.rs @@ -26,7 +26,7 @@ impl HTMLQuoteElementDerived for EventTarget { } impl HTMLQuoteElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLQuoteElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLQuoteElement { HTMLQuoteElement { htmlelement: HTMLElement::new_inherited(HTMLQuoteElementTypeId, localName, document) } diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs index 04104198a3e..e29010ec2ec 100644 --- a/components/script/dom/htmlscriptelement.rs +++ b/components/script/dom/htmlscriptelement.rs @@ -32,7 +32,7 @@ impl HTMLScriptElementDerived for EventTarget { } impl HTMLScriptElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLScriptElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLScriptElement { HTMLScriptElement { htmlelement: HTMLElement::new_inherited(HTMLScriptElementTypeId, localName, document) } diff --git a/components/script/dom/htmlselectelement.rs b/components/script/dom/htmlselectelement.rs index 6e947e6c9dd..891a9787624 100644 --- a/components/script/dom/htmlselectelement.rs +++ b/components/script/dom/htmlselectelement.rs @@ -34,7 +34,7 @@ impl HTMLSelectElementDerived for EventTarget { } impl HTMLSelectElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLSelectElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLSelectElement { HTMLSelectElement { htmlelement: HTMLElement::new_inherited(HTMLSelectElementTypeId, localName, document) } diff --git a/components/script/dom/htmlsourceelement.rs b/components/script/dom/htmlsourceelement.rs index 8d4511478bc..336d7af74be 100644 --- a/components/script/dom/htmlsourceelement.rs +++ b/components/script/dom/htmlsourceelement.rs @@ -26,7 +26,7 @@ impl HTMLSourceElementDerived for EventTarget { } impl HTMLSourceElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLSourceElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLSourceElement { HTMLSourceElement { htmlelement: HTMLElement::new_inherited(HTMLSourceElementTypeId, localName, document) } diff --git a/components/script/dom/htmlspanelement.rs b/components/script/dom/htmlspanelement.rs index 83285554678..84ce1272d7b 100644 --- a/components/script/dom/htmlspanelement.rs +++ b/components/script/dom/htmlspanelement.rs @@ -26,7 +26,7 @@ impl HTMLSpanElementDerived for EventTarget { } impl HTMLSpanElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLSpanElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLSpanElement { HTMLSpanElement { htmlelement: HTMLElement::new_inherited(HTMLSpanElementTypeId, localName, document) } diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs index c77896fbc1f..f98be5f3e08 100644 --- a/components/script/dom/htmlstyleelement.rs +++ b/components/script/dom/htmlstyleelement.rs @@ -30,7 +30,7 @@ impl HTMLStyleElementDerived for EventTarget { } impl HTMLStyleElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLStyleElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLStyleElement { HTMLStyleElement { htmlelement: HTMLElement::new_inherited(HTMLStyleElementTypeId, localName, document) } diff --git a/components/script/dom/htmltablecaptionelement.rs b/components/script/dom/htmltablecaptionelement.rs index 2e7d7e0f02d..b49944eaaf0 100644 --- a/components/script/dom/htmltablecaptionelement.rs +++ b/components/script/dom/htmltablecaptionelement.rs @@ -26,7 +26,7 @@ impl HTMLTableCaptionElementDerived for EventTarget { } impl HTMLTableCaptionElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableCaptionElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableCaptionElement { HTMLTableCaptionElement { htmlelement: HTMLElement::new_inherited(HTMLTableCaptionElementTypeId, localName, document) } diff --git a/components/script/dom/htmltablecolelement.rs b/components/script/dom/htmltablecolelement.rs index 659e1af65cb..fdadb37acf7 100644 --- a/components/script/dom/htmltablecolelement.rs +++ b/components/script/dom/htmltablecolelement.rs @@ -26,7 +26,7 @@ impl HTMLTableColElementDerived for EventTarget { } impl HTMLTableColElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableColElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableColElement { HTMLTableColElement { htmlelement: HTMLElement::new_inherited(HTMLTableColElementTypeId, localName, document) } diff --git a/components/script/dom/htmltabledatacellelement.rs b/components/script/dom/htmltabledatacellelement.rs index 0bfd71f1de2..5e110827e2d 100644 --- a/components/script/dom/htmltabledatacellelement.rs +++ b/components/script/dom/htmltabledatacellelement.rs @@ -26,7 +26,7 @@ impl HTMLTableDataCellElementDerived for EventTarget { } impl HTMLTableDataCellElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableDataCellElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableDataCellElement { HTMLTableDataCellElement { htmltablecellelement: HTMLTableCellElement::new_inherited(HTMLTableDataCellElementTypeId, localName, document) } diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs index b92b9b3b14c..68cb80371c3 100644 --- a/components/script/dom/htmltableelement.rs +++ b/components/script/dom/htmltableelement.rs @@ -30,7 +30,7 @@ impl HTMLTableElementDerived for EventTarget { } impl HTMLTableElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableElement { HTMLTableElement { htmlelement: HTMLElement::new_inherited(HTMLTableElementTypeId, localName, document) } diff --git a/components/script/dom/htmltableheadercellelement.rs b/components/script/dom/htmltableheadercellelement.rs index 9fea015e0a9..a88fdc302d3 100644 --- a/components/script/dom/htmltableheadercellelement.rs +++ b/components/script/dom/htmltableheadercellelement.rs @@ -26,7 +26,7 @@ impl HTMLTableHeaderCellElementDerived for EventTarget { } impl HTMLTableHeaderCellElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableHeaderCellElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableHeaderCellElement { HTMLTableHeaderCellElement { htmltablecellelement: HTMLTableCellElement::new_inherited(HTMLTableHeaderCellElementTypeId, localName, document) } diff --git a/components/script/dom/htmltablerowelement.rs b/components/script/dom/htmltablerowelement.rs index 9ebfe270696..fdb2f049e3b 100644 --- a/components/script/dom/htmltablerowelement.rs +++ b/components/script/dom/htmltablerowelement.rs @@ -26,7 +26,7 @@ impl HTMLTableRowElementDerived for EventTarget { } impl HTMLTableRowElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableRowElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableRowElement { HTMLTableRowElement { htmlelement: HTMLElement::new_inherited(HTMLTableRowElementTypeId, localName, document) } diff --git a/components/script/dom/htmltablesectionelement.rs b/components/script/dom/htmltablesectionelement.rs index 26ebcf784d7..b730aca1f06 100644 --- a/components/script/dom/htmltablesectionelement.rs +++ b/components/script/dom/htmltablesectionelement.rs @@ -26,7 +26,7 @@ impl HTMLTableSectionElementDerived for EventTarget { } impl HTMLTableSectionElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableSectionElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTableSectionElement { HTMLTableSectionElement { htmlelement: HTMLElement::new_inherited(HTMLTableSectionElementTypeId, localName, document) } diff --git a/components/script/dom/htmltemplateelement.rs b/components/script/dom/htmltemplateelement.rs index d5d888251c0..fb48d6c1125 100644 --- a/components/script/dom/htmltemplateelement.rs +++ b/components/script/dom/htmltemplateelement.rs @@ -26,7 +26,7 @@ impl HTMLTemplateElementDerived for EventTarget { } impl HTMLTemplateElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTemplateElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTemplateElement { HTMLTemplateElement { htmlelement: HTMLElement::new_inherited(HTMLTemplateElementTypeId, localName, document) } diff --git a/components/script/dom/htmltextareaelement.rs b/components/script/dom/htmltextareaelement.rs index e0d0d0df85a..60a84a4d93f 100644 --- a/components/script/dom/htmltextareaelement.rs +++ b/components/script/dom/htmltextareaelement.rs @@ -31,7 +31,7 @@ impl HTMLTextAreaElementDerived for EventTarget { } impl HTMLTextAreaElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTextAreaElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTextAreaElement { HTMLTextAreaElement { htmlelement: HTMLElement::new_inherited(HTMLTextAreaElementTypeId, localName, document) } diff --git a/components/script/dom/htmltimeelement.rs b/components/script/dom/htmltimeelement.rs index 166fc3c59c7..4d0c1cbe0bf 100644 --- a/components/script/dom/htmltimeelement.rs +++ b/components/script/dom/htmltimeelement.rs @@ -26,7 +26,7 @@ impl HTMLTimeElementDerived for EventTarget { } impl HTMLTimeElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTimeElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTimeElement { HTMLTimeElement { htmlelement: HTMLElement::new_inherited(HTMLTimeElementTypeId, localName, document) } diff --git a/components/script/dom/htmltitleelement.rs b/components/script/dom/htmltitleelement.rs index e0a877457af..7b15910d8eb 100644 --- a/components/script/dom/htmltitleelement.rs +++ b/components/script/dom/htmltitleelement.rs @@ -29,7 +29,7 @@ impl HTMLTitleElementDerived for EventTarget { } impl HTMLTitleElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTitleElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTitleElement { HTMLTitleElement { htmlelement: HTMLElement::new_inherited(HTMLTitleElementTypeId, localName, document) } diff --git a/components/script/dom/htmltrackelement.rs b/components/script/dom/htmltrackelement.rs index 75b56761186..7ddbd2190bd 100644 --- a/components/script/dom/htmltrackelement.rs +++ b/components/script/dom/htmltrackelement.rs @@ -26,7 +26,7 @@ impl HTMLTrackElementDerived for EventTarget { } impl HTMLTrackElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTrackElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLTrackElement { HTMLTrackElement { htmlelement: HTMLElement::new_inherited(HTMLTrackElementTypeId, localName, document) } diff --git a/components/script/dom/htmlulistelement.rs b/components/script/dom/htmlulistelement.rs index 65f8c1e0de9..143a2a38ac5 100644 --- a/components/script/dom/htmlulistelement.rs +++ b/components/script/dom/htmlulistelement.rs @@ -26,7 +26,7 @@ impl HTMLUListElementDerived for EventTarget { } impl HTMLUListElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLUListElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLUListElement { HTMLUListElement { htmlelement: HTMLElement::new_inherited(HTMLUListElementTypeId, localName, document) } diff --git a/components/script/dom/htmlunknownelement.rs b/components/script/dom/htmlunknownelement.rs index bd3226c1854..a41b4cca835 100644 --- a/components/script/dom/htmlunknownelement.rs +++ b/components/script/dom/htmlunknownelement.rs @@ -26,7 +26,7 @@ impl HTMLUnknownElementDerived for EventTarget { } impl HTMLUnknownElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLUnknownElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLUnknownElement { HTMLUnknownElement { htmlelement: HTMLElement::new_inherited(HTMLUnknownElementTypeId, localName, document) } diff --git a/components/script/dom/htmlvideoelement.rs b/components/script/dom/htmlvideoelement.rs index 754a00fb8cf..3ae359eff94 100644 --- a/components/script/dom/htmlvideoelement.rs +++ b/components/script/dom/htmlvideoelement.rs @@ -26,7 +26,7 @@ impl HTMLVideoElementDerived for EventTarget { } impl HTMLVideoElement { - pub fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLVideoElement { + fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLVideoElement { HTMLVideoElement { htmlmediaelement: HTMLMediaElement::new_inherited(HTMLVideoElementTypeId, localName, document) } diff --git a/components/script/dom/location.rs b/components/script/dom/location.rs index 114f1e80506..36f7c47cca6 100644 --- a/components/script/dom/location.rs +++ b/components/script/dom/location.rs @@ -23,7 +23,7 @@ pub struct Location { } impl Location { - pub fn new_inherited(page: Rc<Page>) -> Location { + fn new_inherited(page: Rc<Page>) -> Location { Location { reflector_: Reflector::new(), page: page diff --git a/components/script/dom/messageevent.rs b/components/script/dom/messageevent.rs index 5b65a45f9ba..88c37ffed83 100644 --- a/components/script/dom/messageevent.rs +++ b/components/script/dom/messageevent.rs @@ -35,7 +35,7 @@ impl MessageEventDerived for Event { } impl MessageEvent { - pub fn new_inherited(data: JSVal, origin: DOMString, lastEventId: DOMString) + fn new_inherited(data: JSVal, origin: DOMString, lastEventId: DOMString) -> MessageEvent { MessageEvent { event: Event::new_inherited(MessageEventTypeId), diff --git a/components/script/dom/mouseevent.rs b/components/script/dom/mouseevent.rs index 242ba31a97a..c0df0bb9752 100644 --- a/components/script/dom/mouseevent.rs +++ b/components/script/dom/mouseevent.rs @@ -41,7 +41,7 @@ impl MouseEventDerived for Event { } impl MouseEvent { - pub fn new_inherited() -> MouseEvent { + fn new_inherited() -> MouseEvent { MouseEvent { mouseevent: UIEvent::new_inherited(MouseEventTypeId), screen_x: Traceable::new(Cell::new(0)), diff --git a/components/script/dom/namednodemap.rs b/components/script/dom/namednodemap.rs index a5e80821aff..5f0e4355e7e 100644 --- a/components/script/dom/namednodemap.rs +++ b/components/script/dom/namednodemap.rs @@ -19,7 +19,7 @@ pub struct NamedNodeMap { } impl NamedNodeMap { - pub fn new_inherited(elem: JSRef<Element>) -> NamedNodeMap { + fn new_inherited(elem: JSRef<Element>) -> NamedNodeMap { NamedNodeMap { reflector_: Reflector::new(), owner: JS::from_rooted(elem), diff --git a/components/script/dom/navigator.rs b/components/script/dom/navigator.rs index c0e8e7f2315..6850fc10b25 100644 --- a/components/script/dom/navigator.rs +++ b/components/script/dom/navigator.rs @@ -18,7 +18,7 @@ pub struct Navigator { } impl Navigator { - pub fn new_inherited() -> Navigator { + fn new_inherited() -> Navigator { Navigator { reflector_: Reflector::new() } diff --git a/components/script/dom/nodeiterator.rs b/components/script/dom/nodeiterator.rs index cb373650494..2e4fe3f442b 100644 --- a/components/script/dom/nodeiterator.rs +++ b/components/script/dom/nodeiterator.rs @@ -15,7 +15,7 @@ pub struct NodeIterator { } impl NodeIterator { - pub fn new_inherited() -> NodeIterator { + fn new_inherited() -> NodeIterator { NodeIterator { reflector_: Reflector::new() } diff --git a/components/script/dom/nodelist.rs b/components/script/dom/nodelist.rs index 1470060467a..716e0dc9be1 100644 --- a/components/script/dom/nodelist.rs +++ b/components/script/dom/nodelist.rs @@ -25,7 +25,7 @@ pub struct NodeList { } impl NodeList { - pub fn new_inherited(list_type: NodeListType) -> NodeList { + fn new_inherited(list_type: NodeListType) -> NodeList { NodeList { list_type: list_type, reflector_: Reflector::new(), diff --git a/components/script/dom/performancetiming.rs b/components/script/dom/performancetiming.rs index 6aaf89f7cbd..aab37e62675 100644 --- a/components/script/dom/performancetiming.rs +++ b/components/script/dom/performancetiming.rs @@ -18,7 +18,7 @@ pub struct PerformanceTiming { } impl PerformanceTiming { - pub fn new_inherited(navStart: u64, navStartPrecise: f64) + fn new_inherited(navStart: u64, navStartPrecise: f64) -> PerformanceTiming { PerformanceTiming { reflector_: Reflector::new(), diff --git a/components/script/dom/processinginstruction.rs b/components/script/dom/processinginstruction.rs index 7cb1f219c14..dc6631ad34e 100644 --- a/components/script/dom/processinginstruction.rs +++ b/components/script/dom/processinginstruction.rs @@ -28,7 +28,7 @@ impl ProcessingInstructionDerived for EventTarget { } impl ProcessingInstruction { - pub fn new_inherited(target: DOMString, data: DOMString, document: JSRef<Document>) -> ProcessingInstruction { + fn new_inherited(target: DOMString, data: DOMString, document: JSRef<Document>) -> ProcessingInstruction { ProcessingInstruction { characterdata: CharacterData::new_inherited(ProcessingInstructionNodeTypeId, data, document), target: target diff --git a/components/script/dom/progressevent.rs b/components/script/dom/progressevent.rs index c60fa8073e1..2869a035b25 100644 --- a/components/script/dom/progressevent.rs +++ b/components/script/dom/progressevent.rs @@ -29,7 +29,7 @@ impl ProgressEventDerived for Event { } impl ProgressEvent { - pub fn new_inherited(length_computable: bool, loaded: u64, total: u64) -> ProgressEvent { + fn new_inherited(length_computable: bool, loaded: u64, total: u64) -> ProgressEvent { ProgressEvent { event: Event::new_inherited(ProgressEventTypeId), length_computable: length_computable, diff --git a/components/script/dom/range.rs b/components/script/dom/range.rs index de0b62398de..56197342d0b 100644 --- a/components/script/dom/range.rs +++ b/components/script/dom/range.rs @@ -18,7 +18,7 @@ pub struct Range { } impl Range { - pub fn new_inherited() -> Range { + fn new_inherited() -> Range { Range { reflector_: Reflector::new() } diff --git a/components/script/dom/screen.rs b/components/script/dom/screen.rs index 389fd60d683..333e6169809 100644 --- a/components/script/dom/screen.rs +++ b/components/script/dom/screen.rs @@ -16,7 +16,7 @@ pub struct Screen { } impl Screen { - pub fn new_inherited() -> Screen { + fn new_inherited() -> Screen { Screen { reflector_: Reflector::new(), } diff --git a/components/script/dom/text.rs b/components/script/dom/text.rs index e3dcf03a51c..b073f8ec298 100644 --- a/components/script/dom/text.rs +++ b/components/script/dom/text.rs @@ -29,7 +29,7 @@ impl TextDerived for EventTarget { } impl Text { - pub fn new_inherited(text: DOMString, document: JSRef<Document>) -> Text { + fn new_inherited(text: DOMString, document: JSRef<Document>) -> Text { Text { characterdata: CharacterData::new_inherited(TextNodeTypeId, text, document) } diff --git a/components/script/dom/treewalker.rs b/components/script/dom/treewalker.rs index 6dc8463037a..ba667c222e8 100644 --- a/components/script/dom/treewalker.rs +++ b/components/script/dom/treewalker.rs @@ -33,7 +33,7 @@ pub struct TreeWalker { } impl TreeWalker { - pub fn new_inherited(root_node: JSRef<Node>, + fn new_inherited(root_node: JSRef<Node>, what_to_show: u32, filter: Filter) -> TreeWalker { TreeWalker { diff --git a/components/script/dom/urlsearchparams.rs b/components/script/dom/urlsearchparams.rs index a8766959144..ae900d59e96 100644 --- a/components/script/dom/urlsearchparams.rs +++ b/components/script/dom/urlsearchparams.rs @@ -29,7 +29,7 @@ pub struct URLSearchParams { } impl URLSearchParams { - pub fn new_inherited() -> URLSearchParams { + fn new_inherited() -> URLSearchParams { URLSearchParams { data: Traceable::new(RefCell::new(HashMap::new())), reflector_: Reflector::new(), diff --git a/components/script/dom/validitystate.rs b/components/script/dom/validitystate.rs index 072c9a9e2de..cf8c2ba3898 100644 --- a/components/script/dom/validitystate.rs +++ b/components/script/dom/validitystate.rs @@ -16,7 +16,7 @@ pub struct ValidityState { } impl ValidityState { - pub fn new_inherited() -> ValidityState { + fn new_inherited() -> ValidityState { ValidityState { reflector_: Reflector::new(), state: 0, diff --git a/components/script/dom/worker.rs b/components/script/dom/worker.rs index 76e24df58c8..04bac9e2c9a 100644 --- a/components/script/dom/worker.rs +++ b/components/script/dom/worker.rs @@ -41,7 +41,7 @@ pub struct Worker { } impl Worker { - pub fn new_inherited(global: &GlobalRef, sender: ScriptChan) -> Worker { + fn new_inherited(global: &GlobalRef, sender: ScriptChan) -> Worker { Worker { eventtarget: EventTarget::new_inherited(WorkerTypeId), refcount: Cell::new(0), diff --git a/components/script/dom/workerlocation.rs b/components/script/dom/workerlocation.rs index d31e7c75e59..c612e49e04f 100644 --- a/components/script/dom/workerlocation.rs +++ b/components/script/dom/workerlocation.rs @@ -23,7 +23,7 @@ pub struct WorkerLocation { } impl WorkerLocation { - pub fn new_inherited(url: Url) -> WorkerLocation { + fn new_inherited(url: Url) -> WorkerLocation { WorkerLocation { reflector_: Reflector::new(), url: Untraceable::new(url), diff --git a/components/script/dom/workernavigator.rs b/components/script/dom/workernavigator.rs index fe6f70b1337..2265b23c6bc 100644 --- a/components/script/dom/workernavigator.rs +++ b/components/script/dom/workernavigator.rs @@ -18,7 +18,7 @@ pub struct WorkerNavigator { } impl WorkerNavigator { - pub fn new_inherited() -> WorkerNavigator { + fn new_inherited() -> WorkerNavigator { WorkerNavigator { reflector_: Reflector::new(), } diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index 936c14b6740..4f310a8948b 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -136,7 +136,7 @@ pub struct XMLHttpRequest { } impl XMLHttpRequest { - pub fn new_inherited(global: &GlobalRef) -> XMLHttpRequest { + fn new_inherited(global: &GlobalRef) -> XMLHttpRequest { XMLHttpRequest { eventtarget: XMLHttpRequestEventTarget::new_inherited(XMLHttpRequestTypeId), ready_state: Traceable::new(Cell::new(Unsent)), diff --git a/components/script/dom/xmlhttprequestupload.rs b/components/script/dom/xmlhttprequestupload.rs index 986c29123ca..2059a69126d 100644 --- a/components/script/dom/xmlhttprequestupload.rs +++ b/components/script/dom/xmlhttprequestupload.rs @@ -18,7 +18,7 @@ pub struct XMLHttpRequestUpload { } impl XMLHttpRequestUpload { - pub fn new_inherited() -> XMLHttpRequestUpload { + fn new_inherited() -> XMLHttpRequestUpload { XMLHttpRequestUpload { eventtarget:XMLHttpRequestEventTarget::new_inherited(XMLHttpRequestUploadTypeId) } |