diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-08-01 20:45:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 20:45:58 +0200 |
commit | f8761cf8c5233f75123a7245a1e6a0aa12e22160 (patch) | |
tree | c85031f115b088d6b60af6f7ad34a9ca9a64a134 /dom/canvas/WebGLContextState.cpp | |
parent | e79f2ee69455df701e559c10f8a9408fe8870281 (diff) | |
parent | d84ee90be10b67358a2a2340041337aec0cf04d8 (diff) | |
download | UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar.gz UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar.lz UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar.xz UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.zip |
Merge pull request #688 from janekptacijarabaci/about-support_WebGL-information_expand_1
Expand about:support WebGL information
Diffstat (limited to 'dom/canvas/WebGLContextState.cpp')
-rw-r--r-- | dom/canvas/WebGLContextState.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/dom/canvas/WebGLContextState.cpp b/dom/canvas/WebGLContextState.cpp index e0234f5c6..c2f4c1a75 100644 --- a/dom/canvas/WebGLContextState.cpp +++ b/dom/canvas/WebGLContextState.cpp @@ -61,18 +61,6 @@ WebGLContext::Enable(GLenum cap) gl->fEnable(cap); } -static JS::Value -StringValue(JSContext* cx, const nsAString& str, ErrorResult& rv) -{ - JSString* jsStr = JS_NewUCStringCopyN(cx, str.BeginReading(), str.Length()); - if (!jsStr) { - rv.Throw(NS_ERROR_OUT_OF_MEMORY); - return JS::NullValue(); - } - - return JS::StringValue(jsStr); -} - bool WebGLContext::GetStencilBits(GLint* const out_stencilBits) { |