Remove usage of String::from_str, deprecated in #6377

This commit is contained in:
Simon Sapin 2015-06-15 15:34:03 +02:00
parent 24af4c4ec6
commit 5428226e04
6 changed files with 11 additions and 13 deletions

View file

@ -101,10 +101,10 @@ impl<'a> WebGLRenderingContextMethods for JSRef<'a, WebGLRenderingContext> {
// TODO(ecoal95): Implement the missing parameters from the spec
match parameter {
WebGLRenderingContextConstants::VERSION =>
DOMString::from_str("WebGL 1.0").to_jsval(cx),
"WebGL 1.0".to_jsval(cx),
WebGLRenderingContextConstants::RENDERER |
WebGLRenderingContextConstants::VENDOR =>
DOMString::from_str("Mozilla/Servo").to_jsval(cx),
"Mozilla/Servo".to_jsval(cx),
_ => NullValue(),
}
}