changed name of NS_CreateContext to NS_CreateScriptContext

This commit is contained in:
vidur%netscape.com 1999-08-09 19:14:49 +00:00
parent 953e2971e4
commit e6f812551a
4 changed files with 5 additions and 4 deletions

View File

@ -3161,7 +3161,7 @@ nsWebShell::CreateScriptEnvironment()
}
if (nsnull == mScriptContext) {
res = NS_CreateContext(mScriptGlobal, &mScriptContext);
res = NS_CreateScriptContext(mScriptGlobal, &mScriptContext);
}
return res;

View File

@ -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__

View File

@ -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();

View File

@ -3161,7 +3161,7 @@ nsWebShell::CreateScriptEnvironment()
}
if (nsnull == mScriptContext) {
res = NS_CreateContext(mScriptGlobal, &mScriptContext);
res = NS_CreateScriptContext(mScriptGlobal, &mScriptContext);
}
return res;