зеркало из https://github.com/mozilla/pjs.git
Fixed necko ifdef.
This commit is contained in:
Родитель
b91e7411d6
Коммит
de403f2a0e
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче