зеркало из https://github.com/mozilla/gecko-dev.git
Bug 857275 - Remove RasterImage::FrameUpdated. r=jrmuizel
--HG-- extra : rebase_source : 4d8209630bb8da562530a817f43cfd49243a379a
This commit is contained in:
Родитель
27808e5b96
Коммит
fb6852294b
|
@ -1518,22 +1518,6 @@ RasterImage::EnsureFrame(uint32_t aFramenum, int32_t aX, int32_t aY,
|
||||||
aFrame);
|
aFrame);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
RasterImage::FrameUpdated(uint32_t aFrameNum, nsIntRect &aUpdatedRect)
|
|
||||||
{
|
|
||||||
NS_ABORT_IF_FALSE(aFrameNum < mFrames.Length(), "Invalid frame index!");
|
|
||||||
|
|
||||||
imgFrame *frame = GetImgFrameNoDecode(aFrameNum);
|
|
||||||
NS_ABORT_IF_FALSE(frame, "Calling FrameUpdated on frame that doesn't exist!");
|
|
||||||
|
|
||||||
frame->ImageUpdated(aUpdatedRect);
|
|
||||||
|
|
||||||
if (aFrameNum == GetCurrentImgFrameIndex() &&
|
|
||||||
!IsInUpdateImageContainer()) {
|
|
||||||
mImageContainer = nullptr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
RasterImage::SetFrameAsNonPremult(uint32_t aFrameNum, bool aIsNonPremult)
|
RasterImage::SetFrameAsNonPremult(uint32_t aFrameNum, bool aIsNonPremult)
|
||||||
{
|
{
|
||||||
|
|
|
@ -222,8 +222,6 @@ public:
|
||||||
uint32_t* imageLength,
|
uint32_t* imageLength,
|
||||||
imgFrame** aFrame);
|
imgFrame** aFrame);
|
||||||
|
|
||||||
void FrameUpdated(uint32_t aFrameNum, nsIntRect& aUpdatedRect);
|
|
||||||
|
|
||||||
/* notification that the entire image has been decoded */
|
/* notification that the entire image has been decoded */
|
||||||
nsresult DecodingComplete();
|
nsresult DecodingComplete();
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче