diff --git a/gfx/tests/btest/BitTest.cpp b/gfx/tests/btest/BitTest.cpp index b38e7ebca852..d79411f7208c 100644 --- a/gfx/tests/btest/BitTest.cpp +++ b/gfx/tests/btest/BitTest.cpp @@ -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); diff --git a/webshell/src/nsThrobber.cpp b/webshell/src/nsThrobber.cpp index 68407a1abb98..ccb47476ef7e 100644 --- a/webshell/src/nsThrobber.cpp +++ b/webshell/src/nsThrobber.cpp @@ -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); diff --git a/widget/tests/scribble/Scribble.cpp b/widget/tests/scribble/Scribble.cpp index 293e1c3d80c5..53ffc328f071 100644 --- a/widget/tests/scribble/Scribble.cpp +++ b/widget/tests/scribble/Scribble.cpp @@ -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;