зеркало из https://github.com/mozilla/pjs.git
Creation of the docshell now uses the generic factory rather than it's own private Create method for instantiation of the nsDocShell class.
This commit is contained in:
Родитель
854058cbf9
Коммит
5eb157b5b1
|
@ -26,6 +26,10 @@
|
|||
|
||||
#include "nsDocShell.h"
|
||||
|
||||
// Factory Constructors
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDocShell)
|
||||
|
||||
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
|
||||
static NS_DEFINE_CID(kDocShellCID, NS_DOCSHELL_CID);
|
||||
|
||||
|
@ -46,7 +50,7 @@ NSGetFactory(nsISupports* aServMgr,
|
|||
nsIGenericFactory* fact;
|
||||
|
||||
if(aClass.Equals(kDocShellCID))
|
||||
rv = NS_NewGenericFactory(&fact, nsDocShell::Create);
|
||||
rv = NS_NewGenericFactory(&fact, nsDocShellConstructor);
|
||||
else
|
||||
rv = NS_NOINTERFACE;
|
||||
|
||||
|
@ -101,7 +105,7 @@ NSUnregisterSelf(nsISupports* aServMgr, const char* aPath)
|
|||
|
||||
static nsModuleComponentInfo components[] =
|
||||
{
|
||||
{ "DocShell Component", NS_DOCSHELL_CID, NS_DOCSHELL_PROGID, nsDocShell::Create }
|
||||
{ "DocShell Component", NS_DOCSHELL_CID, NS_DOCSHELL_PROGID, nsDocShellConstructor }
|
||||
};
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче