diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-08-01 08:58:59 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-08-01 08:58:59 +0200 |
commit | e7f7100ba6759f30295dbc49f819ebb9c4785298 (patch) | |
tree | 939f31b2484c41ec415e9eb56aee1c2934752e65 /dom/canvas/WebGLContextState.cpp | |
parent | ddb2b976802181e05cb37a94480e9fb42ae6708a (diff) | |
download | UXP-e7f7100ba6759f30295dbc49f819ebb9c4785298.tar UXP-e7f7100ba6759f30295dbc49f819ebb9c4785298.tar.gz UXP-e7f7100ba6759f30295dbc49f819ebb9c4785298.tar.lz UXP-e7f7100ba6759f30295dbc49f819ebb9c4785298.tar.xz UXP-e7f7100ba6759f30295dbc49f819ebb9c4785298.zip |
Bug 1335296 - 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) { |