aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmltableelement.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2013-11-10 14:11:15 +0100
committerMs2ger <ms2ger@gmail.com>2013-11-12 13:57:18 +0100
commit08afc6d19d5875763a241e08534ba952e507b137 (patch)
treea3ca25a011543eb928aa7843cc39931b56063b33 /src/components/script/dom/htmltableelement.rs
parent803cd4b7cfa0e846d5fa89be04ef4140e6f1a7d2 (diff)
downloadservo-08afc6d19d5875763a241e08534ba952e507b137.tar.gz
servo-08afc6d19d5875763a241e08534ba952e507b137.zip
Don't pass nullable strings to native DOM methods that want non-nullable strings. Fixes #1207.
Diffstat (limited to 'src/components/script/dom/htmltableelement.rs')
-rw-r--r--src/components/script/dom/htmltableelement.rs54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/components/script/dom/htmltableelement.rs b/src/components/script/dom/htmltableelement.rs
index b06e0d7c220..4ab2ef5c1e7 100644
--- a/src/components/script/dom/htmltableelement.rs
+++ b/src/components/script/dom/htmltableelement.rs
@@ -50,75 +50,75 @@ impl HTMLTableElement {
pub fn StopSorting(&self) {
}
- pub fn Align(&self) -> Option<DOMString> {
- None
+ pub fn Align(&self) -> DOMString {
+ ~""
}
- pub fn SetAlign(&self, _align: &Option<DOMString>) -> ErrorResult {
+ pub fn SetAlign(&self, _align: &DOMString) -> ErrorResult {
Ok(())
}
- pub fn Border(&self) -> Option<DOMString> {
- None
+ pub fn Border(&self) -> DOMString {
+ ~""
}
- pub fn SetBorder(&self, _border: &Option<DOMString>) -> ErrorResult {
+ pub fn SetBorder(&self, _border: &DOMString) -> ErrorResult {
Ok(())
}
- pub fn Frame(&self) -> Option<DOMString> {
- None
+ pub fn Frame(&self) -> DOMString {
+ ~""
}
- pub fn SetFrame(&self, _frame: &Option<DOMString>) -> ErrorResult {
+ pub fn SetFrame(&self, _frame: &DOMString) -> ErrorResult {
Ok(())
}
- pub fn Rules(&self) -> Option<DOMString> {
- None
+ pub fn Rules(&self) -> DOMString {
+ ~""
}
- pub fn SetRules(&self, _rules: &Option<DOMString>) -> ErrorResult {
+ pub fn SetRules(&self, _rules: &DOMString) -> ErrorResult {
Ok(())
}
- pub fn Summary(&self) -> Option<DOMString> {
- None
+ pub fn Summary(&self) -> DOMString {
+ ~""
}
- pub fn SetSummary(&self, _summary: &Option<DOMString>) -> ErrorResult {
+ pub fn SetSummary(&self, _summary: &DOMString) -> ErrorResult {
Ok(())
}
- pub fn Width(&self) -> Option<DOMString> {
- None
+ pub fn Width(&self) -> DOMString {
+ ~""
}
- pub fn SetWidth(&self, _width: &Option<DOMString>) -> ErrorResult {
+ pub fn SetWidth(&self, _width: &DOMString) -> ErrorResult {
Ok(())
}
- pub fn BgColor(&self) -> Option<DOMString> {
- None
+ pub fn BgColor(&self) -> DOMString {
+ ~""
}
- pub fn SetBgColor(&self, _bg_color: &Option<DOMString>) -> ErrorResult {
+ pub fn SetBgColor(&self, _bg_color: &DOMString) -> ErrorResult {
Ok(())
}
- pub fn CellPadding(&self) -> Option<DOMString> {
- None
+ pub fn CellPadding(&self) -> DOMString {
+ ~""
}
- pub fn SetCellPadding(&self, _cell_padding: &Option<DOMString>) -> ErrorResult {
+ pub fn SetCellPadding(&self, _cell_padding: &DOMString) -> ErrorResult {
Ok(())
}
- pub fn CellSpacing(&self) -> Option<DOMString> {
- None
+ pub fn CellSpacing(&self) -> DOMString {
+ ~""
}
- pub fn SetCellSpacing(&self, _cell_spacing: &Option<DOMString>) -> ErrorResult {
+ pub fn SetCellSpacing(&self, _cell_spacing: &DOMString) -> ErrorResult {
Ok(())
}
}