aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/codegen
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-08-07 10:36:38 -0700
committerbors-servo <release+servo@mozilla.com>2013-08-07 10:36:38 -0700
commitb84552b89d29160240443e51a776d827df2116d0 (patch)
tree7297c3100079f2d892070d0852b19f1d4206db76 /src/components/script/dom/bindings/codegen
parent79bf91999d46fd154fa95ec8b96a946743f300ff (diff)
parent2e3cd1945cc7f071ce8a3b17febd0f8b404e897c (diff)
downloadservo-b84552b89d29160240443e51a776d827df2116d0.tar.gz
servo-b84552b89d29160240443e51a776d827df2116d0.zip
auto merge of #683 : saneyuki/servo/webidl, r=jdm
Diffstat (limited to 'src/components/script/dom/bindings/codegen')
-rw-r--r--src/components/script/dom/bindings/codegen/Bindings.conf3
-rw-r--r--src/components/script/dom/bindings/codegen/CodegenRust.py4
-rw-r--r--src/components/script/dom/bindings/codegen/HTMLHRElement.webidl30
-rw-r--r--src/components/script/dom/bindings/codegen/HTMLParagraphElement.webidl22
-rw-r--r--src/components/script/dom/bindings/codegen/HTMLScriptElement.webidl35
5 files changed, 93 insertions, 1 deletions
diff --git a/src/components/script/dom/bindings/codegen/Bindings.conf b/src/components/script/dom/bindings/codegen/Bindings.conf
index 57877d06491..8becea9ceec 100644
--- a/src/components/script/dom/bindings/codegen/Bindings.conf
+++ b/src/components/script/dom/bindings/codegen/Bindings.conf
@@ -550,7 +550,10 @@ addHTMLElement('HTMLDivElement')
addHTMLElement('HTMLElement')
addHTMLElement('HTMLHeadElement')
addHTMLElement('HTMLHtmlElement')
+addHTMLElement('HTMLHRElement')
addHTMLElement('HTMLImageElement')
+addHTMLElement('HTMLParagraphElement')
+addHTMLElement('HTMLScriptElement')
addHTMLElement('HTMLSpanElement')
# If you add one of these, you need to make sure nsDOMQS.h has the relevant
diff --git a/src/components/script/dom/bindings/codegen/CodegenRust.py b/src/components/script/dom/bindings/codegen/CodegenRust.py
index 9f8b319e80e..b64ae00afbb 100644
--- a/src/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/src/components/script/dom/bindings/codegen/CodegenRust.py
@@ -4616,11 +4616,13 @@ class CGBindingRoot(CGThing):
'dom::node::{AbstractNode, Node, Text}', #XXXjdm
'dom::document::{Document, AbstractDocument}', #XXXjdm
'dom::element::{Element, HTMLHeadElement, HTMLHtmlElement}', #XXXjdm
- 'dom::element::{HTMLDivElement, HTMLSpanElement}', #XXXjdm
+ 'dom::element::{HTMLDivElement, HTMLSpanElement, HTMLParagraphElement}', #XXXjdm
'dom::htmlanchorelement::HTMLAnchorElement', #XXXjdm
'dom::htmlelement::HTMLElement', #XXXjdm
'dom::htmldocument::HTMLDocument', #XXXjdm
+ 'dom::htmlhrelement::HTMLHRElement',
'dom::htmlimageelement::HTMLImageElement', #XXXjdm
+ 'dom::htmlscriptelement::HTMLScriptElement',
'dom::bindings::utils::*',
'dom::bindings::conversions::*',
'dom::blob::*', #XXXjdm
diff --git a/src/components/script/dom/bindings/codegen/HTMLHRElement.webidl b/src/components/script/dom/bindings/codegen/HTMLHRElement.webidl
new file mode 100644
index 00000000000..0495e43b314
--- /dev/null
+++ b/src/components/script/dom/bindings/codegen/HTMLHRElement.webidl
@@ -0,0 +1,30 @@
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * The origin of this IDL file is
+ * http://www.whatwg.org/specs/web-apps/current-work/#the-hr-element
+ * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
+ * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
+ * Opera Software ASA. You are granted a license to use, reproduce
+ * and create derivative works of this document.
+ */
+
+// http://www.whatwg.org/specs/web-apps/current-work/#the-hr-element
+interface HTMLHRElement : HTMLElement {
+};
+
+// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
+partial interface HTMLHRElement {
+ [SetterThrows]
+ attribute DOMString align;
+ [SetterThrows]
+ attribute DOMString color;
+ [SetterThrows]
+ attribute boolean noShade;
+ [SetterThrows]
+ attribute DOMString size;
+ [SetterThrows]
+ attribute DOMString width;
+};
diff --git a/src/components/script/dom/bindings/codegen/HTMLParagraphElement.webidl b/src/components/script/dom/bindings/codegen/HTMLParagraphElement.webidl
new file mode 100644
index 00000000000..2a626d25750
--- /dev/null
+++ b/src/components/script/dom/bindings/codegen/HTMLParagraphElement.webidl
@@ -0,0 +1,22 @@
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * The origin of this IDL file is
+ * http://www.whatwg.org/specs/web-apps/current-work/#the-p-element
+ * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
+ * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
+ * Opera Software ASA. You are granted a license to use, reproduce
+ * and create derivative works of this document.
+ */
+
+// http://www.whatwg.org/specs/web-apps/current-work/#the-p-element
+interface HTMLParagraphElement : HTMLElement {
+};
+
+// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
+partial interface HTMLParagraphElement {
+ [SetterThrows]
+ attribute DOMString align;
+};
diff --git a/src/components/script/dom/bindings/codegen/HTMLScriptElement.webidl b/src/components/script/dom/bindings/codegen/HTMLScriptElement.webidl
new file mode 100644
index 00000000000..979e38ca3ad
--- /dev/null
+++ b/src/components/script/dom/bindings/codegen/HTMLScriptElement.webidl
@@ -0,0 +1,35 @@
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * The origin of this IDL file is
+ * http://www.whatwg.org/specs/web-apps/current-work/#the-script-element
+ * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
+ */
+
+interface HTMLScriptElement : HTMLElement {
+ [SetterThrows]
+ attribute DOMString src;
+ [SetterThrows]
+ attribute DOMString type;
+ [SetterThrows]
+ attribute DOMString charset;
+ [SetterThrows]
+ attribute boolean async;
+ [SetterThrows]
+ attribute boolean defer;
+ [SetterThrows]
+ attribute DOMString crossOrigin;
+ [SetterThrows]
+ attribute DOMString text;
+};
+
+// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
+partial interface HTMLScriptElement {
+ [SetterThrows]
+ attribute DOMString event;
+ [SetterThrows]
+ attribute DOMString htmlFor;
+};
+