Back out changeset 09e059daabae (bug 1215072) for adding a permaorange-on-b2g test

CLOSED TREE
This commit is contained in:
Phil Ringnalda
2015-10-16 18:42:41 -07:00
parent 8ae59f3159
commit 056f272e3c
11 changed files with 17 additions and 84 deletions

View File

@@ -347,17 +347,13 @@ WebGLContext::OnMemoryPressure()
//
NS_IMETHODIMP
WebGLContext::SetContextOptions(JSContext* cx, JS::Handle<JS::Value> options,
ErrorResult& aRvForDictionaryInit)
WebGLContext::SetContextOptions(JSContext* cx, JS::Handle<JS::Value> options)
{
if (options.isNullOrUndefined() && mOptionsFrozen)
return NS_OK;
WebGLContextAttributes attributes;
if (!attributes.Init(cx, options)) {
aRvForDictionaryInit.Throw(NS_ERROR_UNEXPECTED);
return NS_ERROR_UNEXPECTED;
}
NS_ENSURE_TRUE(attributes.Init(cx, options), NS_ERROR_UNEXPECTED);
WebGLContextOptions newOpts;