diff options
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r-- | components/script/dom/webglrenderingcontext.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index 1ce9561d90a..786a3c25620 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -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(), } } |