aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2013-08-26 16:05:11 -0400
committerJosh Matthews <josh@joshmatthews.net>2013-08-26 16:05:11 -0400
commit540993f196e95f7790482bd7678de3b05aa2ea5f (patch)
tree7248854725a7f68da93c9dcdb4f704e145f15e66
parent1b5f48abe17dc875b421e1f8f2e1ca3a11dbc627 (diff)
downloadservo-540993f196e95f7790482bd7678de3b05aa2ea5f.tar.gz
servo-540993f196e95f7790482bd7678de3b05aa2ea5f.zip
Generate bindings for HTMLFontElement.webidl
-rw-r--r--src/components/script/dom/bindings/codegen/HTMLFontElement.webidl18
-rw-r--r--src/components/script/dom/htmlfontelement.rs33
2 files changed, 51 insertions, 0 deletions
diff --git a/src/components/script/dom/bindings/codegen/HTMLFontElement.webidl b/src/components/script/dom/bindings/codegen/HTMLFontElement.webidl
new file mode 100644
index 00000000000..781dabb889f
--- /dev/null
+++ b/src/components/script/dom/bindings/codegen/HTMLFontElement.webidl
@@ -0,0 +1,18 @@
+/* -*- 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/
+ *
+ * © 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.
+ */
+
+interface HTMLFontElement : HTMLElement {
+ [TreatNullAs=EmptyString, SetterThrows] attribute DOMString color;
+ [SetterThrows] attribute DOMString face;
+ [SetterThrows] attribute DOMString size;
+};
diff --git a/src/components/script/dom/htmlfontelement.rs b/src/components/script/dom/htmlfontelement.rs
new file mode 100644
index 00000000000..eff3d85ae3b
--- /dev/null
+++ b/src/components/script/dom/htmlfontelement.rs
@@ -0,0 +1,33 @@
+/* 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/. */
+
+use dom::bindings::utils::{DOMString, null_string, ErrorResult};
+use dom::htmlelement::HTMLElement;
+
+pub struct HTMLFontElement {
+ parent: HTMLElement
+}
+
+impl HTMLFontElement {
+ pub fn Color(&self) -> DOMString {
+ null_string
+ }
+
+ pub fn SetColor(&mut self, _color: &DOMString, _rv: &mut ErrorResult) {
+ }
+
+ pub fn Face(&self) -> DOMString {
+ null_string
+ }
+
+ pub fn SetFace(&mut self, _face: &DOMString, _rv: &mut ErrorResult) {
+ }
+
+ pub fn Size(&self) -> DOMString {
+ null_string
+ }
+
+ pub fn SetSize(&mut self, _size: &DOMString, _rv: &mut ErrorResult) {
+ }
+}