Bug 1045251. Use the concrete type imgRequestProxy in nsStyleImage. r=seth

--HG--
extra : rebase_source : de67e22ac03d213ee54ab63693c932b4abf12ce9
This commit is contained in:
Jeff Muizelaar 2014-07-29 10:56:39 -04:00
parent 12c76f15f7
commit cc643f47c6
2 changed files with 4 additions and 4 deletions

View File

@ -1708,7 +1708,7 @@ nsStyleImage::SetNull()
}
void
nsStyleImage::SetImageData(imgIRequest* aImage)
nsStyleImage::SetImageData(imgRequestProxy* aImage)
{
NS_ABORT_IF_FALSE(!mImageTracked,
"Setting a new image without untracking the old one!");

View File

@ -194,7 +194,7 @@ struct nsStyleImage {
nsStyleImage& operator=(const nsStyleImage& aOther);
void SetNull();
void SetImageData(imgIRequest* aImage);
void SetImageData(imgRequestProxy* aImage);
void TrackImage(nsPresContext* aContext);
void UntrackImage(nsPresContext* aContext);
void SetGradientData(nsStyleGradient* aGradient);
@ -204,7 +204,7 @@ struct nsStyleImage {
nsStyleImageType GetType() const {
return mType;
}
imgIRequest* GetImageData() const {
imgRequestProxy* GetImageData() const {
NS_ABORT_IF_FALSE(mType == eStyleImageType_Image, "Data is not an image!");
NS_ABORT_IF_FALSE(mImageTracked,
"Should be tracking any image we're going to use!");
@ -297,7 +297,7 @@ private:
nsStyleImageType mType;
union {
imgIRequest* mImage;
imgRequestProxy* mImage;
nsStyleGradient* mGradient;
char16_t* mElementId;
};