aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmlsourceelement.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2013-11-09 21:30:41 +0100
committerMs2ger <ms2ger@gmail.com>2013-11-12 13:32:53 +0100
commit803cd4b7cfa0e846d5fa89be04ef4140e6f1a7d2 (patch)
treece2deda718150aeffbd8826a4550b2ada9f34f34 /src/components/script/dom/htmlsourceelement.rs
parent2975cb69e3bb4784647a5b7f6d5d4dac7b8241cf (diff)
downloadservo-803cd4b7cfa0e846d5fa89be04ef4140e6f1a7d2.tar.gz
servo-803cd4b7cfa0e846d5fa89be04ef4140e6f1a7d2.zip
Make DOMString represent a non-nullable string.
Diffstat (limited to 'src/components/script/dom/htmlsourceelement.rs')
-rw-r--r--src/components/script/dom/htmlsourceelement.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/script/dom/htmlsourceelement.rs b/src/components/script/dom/htmlsourceelement.rs
index 89933a7478a..52974594bf6 100644
--- a/src/components/script/dom/htmlsourceelement.rs
+++ b/src/components/script/dom/htmlsourceelement.rs
@@ -27,27 +27,27 @@ impl HTMLSourceElement {
}
impl HTMLSourceElement {
- pub fn Src(&self) -> DOMString {
+ pub fn Src(&self) -> Option<DOMString> {
None
}
- pub fn SetSrc(&mut self, _src: &DOMString) -> ErrorResult {
+ pub fn SetSrc(&mut self, _src: &Option<DOMString>) -> ErrorResult {
Ok(())
}
- pub fn Type(&self) -> DOMString {
+ pub fn Type(&self) -> Option<DOMString> {
None
}
- pub fn SetType(&mut self, _type: &DOMString) -> ErrorResult {
+ pub fn SetType(&mut self, _type: &Option<DOMString>) -> ErrorResult {
Ok(())
}
- pub fn Media(&self) -> DOMString {
+ pub fn Media(&self) -> Option<DOMString> {
None
}
- pub fn SetMedia(&mut self, _media: &DOMString) -> ErrorResult {
+ pub fn SetMedia(&mut self, _media: &Option<DOMString>) -> ErrorResult {
Ok(())
}
}