diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-06-01 15:41:09 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-06-01 15:41:09 +0200 |
commit | a0783aebbf95659ed571dabcbb7df7784828d696 (patch) | |
tree | 9adda8f3c3b245d04dc2f47573b4962281926d89 /src/components/script/dom/htmlappletelement.rs | |
parent | eaae994d5761e137ecc847e6b38cbcaf9ff88c19 (diff) | |
download | servo-a0783aebbf95659ed571dabcbb7df7784828d696.tar.gz servo-a0783aebbf95659ed571dabcbb7df7784828d696.zip |
Remove not-yet-implemented members from IDL and Rust code.
These stub implementations bring no value, and significantly increased
maintenance costs.
This commit also synchronizes the IDL with the HTML specification and
makes the URLs consistent.
Diffstat (limited to 'src/components/script/dom/htmlappletelement.rs')
-rw-r--r-- | src/components/script/dom/htmlappletelement.rs | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/src/components/script/dom/htmlappletelement.rs b/src/components/script/dom/htmlappletelement.rs index 221875677ea..313cc5d0743 100644 --- a/src/components/script/dom/htmlappletelement.rs +++ b/src/components/script/dom/htmlappletelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLAppletElementBinding; use dom::bindings::codegen::InheritTypes::HTMLAppletElementDerived; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLAppletElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -38,116 +37,4 @@ impl HTMLAppletElement { } pub trait HTMLAppletElementMethods { - fn Align(&self) -> DOMString; - fn SetAlign(&self, _align: DOMString) -> ErrorResult; - fn Alt(&self) -> DOMString; - fn SetAlt(&self, _alt: DOMString) -> ErrorResult; - fn Archive(&self) -> DOMString; - fn SetArchive(&self, _archive: DOMString) -> ErrorResult; - fn Code(&self) -> DOMString; - fn SetCode(&self, _code: DOMString) -> ErrorResult; - fn CodeBase(&self) -> DOMString; - fn SetCodeBase(&self, _code_base: DOMString) -> ErrorResult; - fn Height(&self) -> DOMString; - fn SetHeight(&self, _height: DOMString) -> ErrorResult; - fn Hspace(&self) -> u32; - fn SetHspace(&self, _hspace: u32) -> ErrorResult; - fn Name(&self) -> DOMString; - fn SetName(&self, _name: DOMString) -> ErrorResult; - fn Object(&self) -> DOMString; - fn SetObject(&self, _object: DOMString) -> ErrorResult; - fn Vspace(&self) -> u32; - fn SetVspace(&self, _vspace: u32) -> ErrorResult; - fn Width(&self) -> DOMString; - fn SetWidth(&self, _width: DOMString) -> ErrorResult; -} - -impl<'a> HTMLAppletElementMethods for JSRef<'a, HTMLAppletElement> { - fn Align(&self) -> DOMString { - "".to_owned() - } - - fn SetAlign(&self, _align: DOMString) -> ErrorResult { - Ok(()) - } - - fn Alt(&self) -> DOMString { - "".to_owned() - } - - fn SetAlt(&self, _alt: DOMString) -> ErrorResult { - Ok(()) - } - - fn Archive(&self) -> DOMString { - "".to_owned() - } - - fn SetArchive(&self, _archive: DOMString) -> ErrorResult { - Ok(()) - } - - fn Code(&self) -> DOMString { - "".to_owned() - } - - fn SetCode(&self, _code: DOMString) -> ErrorResult { - Ok(()) - } - - fn CodeBase(&self) -> DOMString { - "".to_owned() - } - - fn SetCodeBase(&self, _code_base: DOMString) -> ErrorResult { - Ok(()) - } - - fn Height(&self) -> DOMString { - "".to_owned() - } - - fn SetHeight(&self, _height: DOMString) -> ErrorResult { - Ok(()) - } - - fn Hspace(&self) -> u32 { - 0 - } - - fn SetHspace(&self, _hspace: u32) -> ErrorResult { - Ok(()) - } - - fn Name(&self) -> DOMString { - "".to_owned() - } - - fn SetName(&self, _name: DOMString) -> ErrorResult { - Ok(()) - } - - fn Object(&self) -> DOMString { - "".to_owned() - } - - fn SetObject(&self, _object: DOMString) -> ErrorResult { - Ok(()) - } - - fn Vspace(&self) -> u32 { - 0 - } - - fn SetVspace(&self, _vspace: u32) -> ErrorResult { - Ok(()) - } - - fn Width(&self) -> DOMString { - "".to_owned() - } - - fn SetWidth(&self, _width: DOMString) -> ErrorResult { - Ok(()) - } } |