Fixed necko ifdef.

This commit is contained in:
warren%netscape.com 1999-06-28 20:23:22 +00:00
parent 31b0f03f1f
commit e87f3dfecd
3 changed files with 0 additions and 12 deletions

View File

@ -853,11 +853,7 @@ char *str;
if (gImageGroup == NULL)
{
nsIDeviceContext *deviceCtx = gWindow->GetDeviceContext();
#ifdef NECKO
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx) != NS_OK)
#else
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx, nsnull) != NS_OK)
#endif
{
::MessageBox(NULL, "Couldn't create image group",class1Name, MB_OK);
NS_RELEASE(deviceCtx);

View File

@ -448,11 +448,7 @@ nsThrobber::LoadThrobberImages(const nsString& aFileNameMask, PRInt32 aNumImages
}
nsIDeviceContext *deviceCtx = mWidget->GetDeviceContext();
#ifndef NECKO
mImageGroup->Init(deviceCtx, nsnull);
#else
mImageGroup->Init(deviceCtx);
#endif // NECKO
NS_RELEASE(deviceCtx);
rv = NS_NewTimer(&mTimer);

View File

@ -860,11 +860,7 @@ char *str;
if (gImageGroup == NULL)
{
nsIDeviceContext *deviceCtx = scribbleData.mContext;
#ifdef NECKO
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx) != NS_OK)
#else
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx, nsnull) != NS_OK)
#endif
{
NS_RELEASE(deviceCtx);
return;