result = NS_NewImageNetContext(&mNetContext, mLoadGroup, ReconnectHack, this);
result = NS_NewImageNetContext(&mNetContext, aLoadContext, ReconnectHack, this);
ImageGroupImpl::Init(nsIDeviceContext *aDeviceContext, nsILoadGroup* aLoadGroup){  ilIImageRenderer *renderer;  nsresult result;  if ((result = NS_NewImageRenderer(&renderer)) != NS_OK) {    return result;  }  mGroupContext = IL_NewGroupContext((void *)aDeviceContext,                                     renderer);  if (mGroupContext == nsnull) {    return NS_ERROR_OUT_OF_MEMORY;  }  mLoadGroup = aLoadGroup;  NS_IF_ADDREF(mLoadGroup);  // Create an async net context  result = NS_NewImageNetContext(&mNetContext, mLoadGroup, ReconnectHack, this);  if (NS_OK != result) {    return result;  }  mDeviceContext = aDeviceContext;  NS_ADDREF(mDeviceContext);  // Get color space to use for this device context.  IL_ColorSpace*  colorSpace;  mDeviceContext->GetILColorSpace(colorSpace);  // Set the image group context display mode  IL_DisplayData displayData;	displayData.dither_mode = IL_Auto;  displayData.color_space = colorSpace;  displayData.progressive_display = PR_TRUE;  IL_SetDisplayMode(mGroupContext,                     IL_COLOR_SPACE | IL_PROGRESSIVE_DISPLAY | IL_DITHER_MODE,                    &displayData);  // Release the color space  IL_ReleaseColorSpace(colorSpace);  return NS_OK;}