mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Make DOMString represent a non-nullable string.
This commit is contained in:
parent
2975cb69e3
commit
803cd4b7cf
75 changed files with 632 additions and 632 deletions
|
@ -26,7 +26,7 @@ impl Text {
|
|||
Node::reflect_node(@mut node, document, TextBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn Constructor(owner: @mut Window, text: &DOMString) -> Fallible<AbstractNode<ScriptView>> {
|
||||
pub fn Constructor(owner: @mut Window, text: &Option<DOMString>) -> Fallible<AbstractNode<ScriptView>> {
|
||||
Ok(Text::new(null_str_as_empty(text), owner.Document()))
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ impl Text {
|
|||
fail!("unimplemented")
|
||||
}
|
||||
|
||||
pub fn GetWholeText(&self) -> Fallible<DOMString> {
|
||||
pub fn GetWholeText(&self) -> Fallible<Option<DOMString>> {
|
||||
Ok(None)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue