mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Pass in a null nsIURLGroup to the image group...
This commit is contained in:
parent
98bab44460
commit
aba40ac4a7
@ -488,7 +488,7 @@ nsThrobber::LoadThrobberImages(const nsString& aFileNameMask, PRInt32 aNumImages
|
||||
}
|
||||
|
||||
nsIDeviceContext *deviceCtx = mWidget->GetDeviceContext();
|
||||
mImageGroup->Init(deviceCtx);
|
||||
mImageGroup->Init(deviceCtx, nsnull);
|
||||
NS_RELEASE(deviceCtx);
|
||||
|
||||
rv = NS_NewTimer(&mTimer);
|
||||
|
@ -199,7 +199,7 @@ MyLoadImage(char *aFileName)
|
||||
if (gImageGroup == NULL) {
|
||||
nsIDeviceContext *deviceCtx = gWindow->GetDeviceContext();
|
||||
if (NS_NewImageGroup(&gImageGroup) != NS_OK ||
|
||||
gImageGroup->Init(deviceCtx) != NS_OK) {
|
||||
gImageGroup->Init(deviceCtx, nsnull) != NS_OK) {
|
||||
::MessageBox(NULL, "Couldn't create image group",
|
||||
class1Name, MB_OK);
|
||||
NS_RELEASE(deviceCtx);
|
||||
|
@ -360,7 +360,7 @@ nsresult nsImageButton::CreateImageGroup()
|
||||
|
||||
nsIDeviceContext * deviceCtx = GetDeviceContext();
|
||||
|
||||
mImageGroup->Init(deviceCtx);
|
||||
mImageGroup->Init(deviceCtx, nsnull);
|
||||
|
||||
NS_RELEASE(deviceCtx);
|
||||
}
|
||||
|
@ -821,7 +821,7 @@ char *str;
|
||||
if (gImageGroup == NULL)
|
||||
{
|
||||
nsIDeviceContext *deviceCtx = scribbleData.mContext;
|
||||
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx) != NS_OK)
|
||||
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx, nsnull) != NS_OK)
|
||||
{
|
||||
NS_RELEASE(deviceCtx);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user