mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Replace all ~"" with "".to_owned().
This commit is contained in:
parent
731e66ff13
commit
243814022e
78 changed files with 290 additions and 290 deletions
|
@ -80,21 +80,21 @@ pub trait HTMLElementMethods {
|
|||
|
||||
impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
|
||||
fn Title(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetTitle(&mut self, _title: DOMString) {
|
||||
}
|
||||
|
||||
fn Lang(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetLang(&mut self, _lang: DOMString) {
|
||||
}
|
||||
|
||||
fn Dir(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetDir(&mut self, _dir: DOMString) -> ErrorResult {
|
||||
|
@ -137,7 +137,7 @@ impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
|
|||
}
|
||||
|
||||
fn AccessKey(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetAccessKey(&self, _key: DOMString) -> ErrorResult {
|
||||
|
@ -145,7 +145,7 @@ impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
|
|||
}
|
||||
|
||||
fn AccessKeyLabel(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn Draggable(&self) -> bool {
|
||||
|
@ -157,7 +157,7 @@ impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
|
|||
}
|
||||
|
||||
fn ContentEditable(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetContentEditable(&mut self, _val: DOMString) -> ErrorResult {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue