mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
@ -74,7 +74,7 @@ pub trait HTMLMediaElementMethods {
|
|||
|
||||
impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
|
||||
fn Src(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetSrc(&mut self, _src: DOMString) -> ErrorResult {
|
||||
|
@ -82,11 +82,11 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
|
|||
}
|
||||
|
||||
fn CurrentSrc(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn CrossOrigin(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetCrossOrigin(&mut self, _cross_origin: DOMString) -> ErrorResult {
|
||||
|
@ -94,7 +94,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
|
|||
}
|
||||
|
||||
fn Preload(&self) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn SetPreload(&mut self, _preload: DOMString) -> ErrorResult {
|
||||
|
@ -105,7 +105,7 @@ impl<'a> HTMLMediaElementMethods for JSRef<'a, HTMLMediaElement> {
|
|||
}
|
||||
|
||||
fn CanPlayType(&self, _type: DOMString) -> DOMString {
|
||||
~""
|
||||
"".to_owned()
|
||||
}
|
||||
|
||||
fn ReadyState(&self) -> u16 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue