mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Bug 1045251. Use the concrete type imgRequestProxy in nsStyleImage. r=seth
--HG-- extra : rebase_source : de67e22ac03d213ee54ab63693c932b4abf12ce9
This commit is contained in:
parent
12c76f15f7
commit
cc643f47c6
@ -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!");
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user