Removed references to viewmanager1 in nsViewFactory. Removed ViewManager1 from the build on WIN32, and Linux. b=42845 r=attinasi@netscape.com. tested=win32,linux

This commit is contained in:
kmcclusk%netscape.com 2000-08-03 03:36:10 +00:00
Родитель adf11b5185
Коммит 5705d1a18f
3 изменённых файлов: 1 добавлений и 29 удалений

Просмотреть файл

@ -37,7 +37,6 @@ CPPSRCS = \
nsView.cpp \
nsScrollingView.cpp \
nsScrollPortView.cpp \
nsViewManager.cpp \
nsViewManager2.cpp \
nsViewFactory.cpp \
$(NULL)

Просмотреть файл

@ -34,7 +34,6 @@ OBJS = \
.\$(OBJDIR)\nsView.obj \
.\$(OBJDIR)\nsScrollPortView.obj \
.\$(OBJDIR)\nsScrollingView.obj \
.\$(OBJDIR)\nsViewManager.obj \
.\$(OBJDIR)\nsViewManager2.obj \
.\$(OBJDIR)\nsViewFactory.obj \
$(NULL)

Просмотреть файл

@ -109,43 +109,17 @@ nsresult nsViewFactory::LockFactory(PRBool aLock)
return NS_OK;
}
//Uncomment the following line to go back to the "new" compositor.
//#define USE_NEW_COMPOSITOR 1
#if 0
#if USE_NEW_COMPOSITOR
#include "nsViewManager.h"
NS_GENERIC_FACTORY_CONSTRUCTOR(nsViewManager)
#else
#include "nsViewManager2.h"
NS_GENERIC_FACTORY_CONSTRUCTOR(nsViewManager2)
#define nsViewManagerConstructor nsViewManager2Constructor
#endif
#else
#include "nsViewManager.h"
#include "nsViewManager2.h"
#include "nsIPref.h"
NS_GENERIC_FACTORY_CONSTRUCTOR(nsViewManager)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsViewManager2)
static NS_IMETHODIMP ViewManagerConstructor(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
PRBool useViewManager2 = PR_TRUE;
nsresult rv;
NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_PROGID, &rv);
if (NS_SUCCEEDED(rv))
prefs->GetBoolPref("nglayout.view.useViewManager2", &useViewManager2);
if (useViewManager2)
return nsViewManager2Constructor(aOuter, aIID, aResult);
else
return nsViewManagerConstructor(aOuter, aIID, aResult);
}
#define nsViewManagerConstructor ViewManagerConstructor
#endif
//////////////////////////////////////////////////////////////////////
// Module object definition