Bug 899245 - Rename JS_GetGlobalForScopeChain to JS::CurrentGlobalOrNull. r=luke

This was done with perl/grep.
This commit is contained in:
Bobby Holley
2013-07-29 16:45:27 -07:00
parent 0d55dae85a
commit 0df174a07e
50 changed files with 97 additions and 93 deletions

View File

@@ -1247,7 +1247,7 @@ _getpluginelement(NPP npp)
NS_ENSURE_TRUE(xpc, nullptr);
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
xpc->WrapNative(cx, ::JS_GetGlobalForScopeChain(cx), element,
xpc->WrapNative(cx, ::JS::CurrentGlobalOrNull(cx), element,
NS_GET_IID(nsIDOMElement),
getter_AddRefs(holder));
NS_ENSURE_TRUE(holder, nullptr);