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/htmlstyleelement.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/htmlstyleelement.rs')
-rw-r--r-- | src/components/script/dom/htmlstyleelement.rs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/components/script/dom/htmlstyleelement.rs b/src/components/script/dom/htmlstyleelement.rs index d75fb8cfc91..e51096fb1d4 100644 --- a/src/components/script/dom/htmlstyleelement.rs +++ b/src/components/script/dom/htmlstyleelement.rs @@ -5,7 +5,6 @@ use dom::bindings::codegen::BindingDeclarations::HTMLStyleElementBinding; use dom::bindings::codegen::InheritTypes::{HTMLElementCast, HTMLStyleElementDerived, NodeCast}; use dom::bindings::js::{JSRef, Temporary}; -use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::HTMLStyleElementTypeId; use dom::eventtarget::{EventTarget, NodeTargetTypeId}; @@ -41,47 +40,6 @@ impl HTMLStyleElement { } pub trait HTMLStyleElementMethods { - fn Disabled(&self) -> bool; - fn SetDisabled(&self, _disabled: bool); - fn Media(&self) -> DOMString; - fn SetMedia(&self, _media: DOMString) -> ErrorResult; - fn Type(&self) -> DOMString; - fn SetType(&self, _type: DOMString) -> ErrorResult; - fn Scoped(&self) -> bool; - fn SetScoped(&self, _scoped: bool) -> ErrorResult; -} - -impl<'a> HTMLStyleElementMethods for JSRef<'a, HTMLStyleElement> { - fn Disabled(&self) -> bool { - false - } - - fn SetDisabled(&self, _disabled: bool) { - } - - fn Media(&self) -> DOMString { - "".to_owned() - } - - fn SetMedia(&self, _media: DOMString) -> ErrorResult { - Ok(()) - } - - fn Type(&self) -> DOMString { - "".to_owned() - } - - fn SetType(&self, _type: DOMString) -> ErrorResult { - Ok(()) - } - - fn Scoped(&self) -> bool { - false - } - - fn SetScoped(&self, _scoped: bool) -> ErrorResult { - Ok(()) - } } pub trait StyleElementHelpers { |