mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -28,25 +28,25 @@ impl HTMLElement {
|
|||
}
|
||||
|
||||
impl HTMLElement {
|
||||
pub fn Title(&self) -> DOMString {
|
||||
pub fn Title(&self) -> Option<DOMString> {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetTitle(&mut self, _title: &DOMString) {
|
||||
pub fn SetTitle(&mut self, _title: &Option<DOMString>) {
|
||||
}
|
||||
|
||||
pub fn Lang(&self) -> DOMString {
|
||||
pub fn Lang(&self) -> Option<DOMString> {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetLang(&mut self, _lang: &DOMString) {
|
||||
pub fn SetLang(&mut self, _lang: &Option<DOMString>) {
|
||||
}
|
||||
|
||||
pub fn Dir(&self) -> DOMString {
|
||||
pub fn Dir(&self) -> Option<DOMString> {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetDir(&mut self, _dir: &DOMString) -> ErrorResult {
|
||||
pub fn SetDir(&mut self, _dir: &Option<DOMString>) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -85,15 +85,15 @@ impl HTMLElement {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn AccessKey(&self) -> DOMString {
|
||||
pub fn AccessKey(&self) -> Option<DOMString> {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetAccessKey(&self, _key: &DOMString) -> ErrorResult {
|
||||
pub fn SetAccessKey(&self, _key: &Option<DOMString>) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn AccessKeyLabel(&self) -> DOMString {
|
||||
pub fn AccessKeyLabel(&self) -> Option<DOMString> {
|
||||
None
|
||||
}
|
||||
|
||||
|
@ -105,11 +105,11 @@ impl HTMLElement {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn ContentEditable(&self) -> DOMString {
|
||||
pub fn ContentEditable(&self) -> Option<DOMString> {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetContentEditable(&mut self, _val: &DOMString) -> ErrorResult {
|
||||
pub fn SetContentEditable(&mut self, _val: &Option<DOMString>) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -125,11 +125,11 @@ impl HTMLElement {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn ClassName(&self) -> DOMString {
|
||||
pub fn ClassName(&self) -> Option<DOMString> {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetClassName(&self, _class: &DOMString) {
|
||||
pub fn SetClassName(&self, _class: &Option<DOMString>) {
|
||||
}
|
||||
|
||||
pub fn GetOffsetParent(&self) -> Option<AbstractNode<ScriptView>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue