mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 869476. nsImageLoadingContent::Track/UntrackImage should return void. r=khuey
This commit is contained in:
parent
8262d988c0
commit
2c413efad1
@ -1296,11 +1296,11 @@ nsImageLoadingContent::UnbindFromTree(bool aDeep, bool aNullParent)
|
||||
doc->UnblockOnload(false);
|
||||
}
|
||||
|
||||
nsresult
|
||||
void
|
||||
nsImageLoadingContent::TrackImage(imgIRequest* aImage, uint32_t aFlags /* = 0 */)
|
||||
{
|
||||
if (!aImage)
|
||||
return NS_OK;
|
||||
return;
|
||||
|
||||
MOZ_ASSERT(aImage == mCurrentRequest || aImage == mPendingRequest,
|
||||
"Why haven't we heard of this request?");
|
||||
@ -1317,14 +1317,13 @@ nsImageLoadingContent::TrackImage(imgIRequest* aImage, uint32_t aFlags /* = 0 */
|
||||
doc->AddImage(mPendingRequest);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
void
|
||||
nsImageLoadingContent::UntrackImage(imgIRequest* aImage, uint32_t aFlags /* = 0 */)
|
||||
{
|
||||
if (!aImage)
|
||||
return NS_OK;
|
||||
return;
|
||||
|
||||
MOZ_ASSERT(aImage == mCurrentRequest || aImage == mPendingRequest,
|
||||
"Why haven't we heard of this request?");
|
||||
@ -1356,7 +1355,6 @@ nsImageLoadingContent::UntrackImage(imgIRequest* aImage, uint32_t aFlags /* = 0
|
||||
aImage->RequestDiscard();
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
@ -337,11 +337,11 @@ protected:
|
||||
enum {
|
||||
SKIP_FRAME_CHECK = 0x1
|
||||
};
|
||||
nsresult TrackImage(imgIRequest* aImage, uint32_t aFlags = 0);
|
||||
void TrackImage(imgIRequest* aImage, uint32_t aFlags = 0);
|
||||
enum {
|
||||
REQUEST_DISCARD = 0x1
|
||||
};
|
||||
nsresult UntrackImage(imgIRequest* aImage, uint32_t aFlags = 0);
|
||||
void UntrackImage(imgIRequest* aImage, uint32_t aFlags = 0);
|
||||
|
||||
/* MEMBERS */
|
||||
nsRefPtr<imgRequestProxy> mCurrentRequest;
|
||||
|
Loading…
Reference in New Issue
Block a user