mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
changed name of NS_CreateContext to NS_CreateScriptContext
This commit is contained in:
parent
953e2971e4
commit
e6f812551a
@ -3161,7 +3161,7 @@ nsWebShell::CreateScriptEnvironment()
|
||||
}
|
||||
|
||||
if (nsnull == mScriptContext) {
|
||||
res = NS_CreateContext(mScriptGlobal, &mScriptContext);
|
||||
res = NS_CreateScriptContext(mScriptGlobal, &mScriptContext);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
@ -155,7 +155,7 @@ public:
|
||||
* Return a new Context
|
||||
*
|
||||
*/
|
||||
extern "C" NS_DOM nsresult NS_CreateContext(nsIScriptGlobalObject *aGlobal, nsIScriptContext **aContext);
|
||||
extern "C" NS_DOM nsresult NS_CreateScriptContext(nsIScriptGlobalObject *aGlobal, nsIScriptContext **aContext);
|
||||
|
||||
#endif // nsIScriptContext_h__
|
||||
|
||||
|
@ -467,7 +467,8 @@ nsIScriptContext* nsJSEnvironment::GetNewContext()
|
||||
return context;
|
||||
}
|
||||
|
||||
extern "C" NS_DOM nsresult NS_CreateContext(nsIScriptGlobalObject *aGlobal, nsIScriptContext **aContext)
|
||||
extern "C" NS_DOM nsresult NS_CreateScriptContext(nsIScriptGlobalObject *aGlobal,
|
||||
nsIScriptContext **aContext)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
nsJSEnvironment *environment = nsJSEnvironment::GetScriptingEnvironment();
|
||||
|
@ -3161,7 +3161,7 @@ nsWebShell::CreateScriptEnvironment()
|
||||
}
|
||||
|
||||
if (nsnull == mScriptContext) {
|
||||
res = NS_CreateContext(mScriptGlobal, &mScriptContext);
|
||||
res = NS_CreateScriptContext(mScriptGlobal, &mScriptContext);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user