r=mkaply, a=blizzard Change initialization of widget resources to we can embed git-svn-id: svn://10.0.0.236/trunk@90182 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -289,18 +289,19 @@ extern "C" nsresult NS_CreateAppshell( nsIAppShell **aAppShell)
|
||||
if( !aAppShell)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
BOOL bFirstTime = FALSE;
|
||||
|
||||
if( !pManager)
|
||||
{
|
||||
bFirstTime = TRUE;
|
||||
pManager = new nsAppshellManager;
|
||||
}
|
||||
|
||||
*aAppShell = pManager->GetAppshell();
|
||||
|
||||
if( bFirstTime)
|
||||
gModuleData.Init( *aAppShell);
|
||||
// only do this the very first time
|
||||
if (gModuleData == nsnull)
|
||||
{
|
||||
gModuleData = new nsWidgetModuleData();
|
||||
gModuleData->Init(*aAppShell);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user