diff --git a/image/src/RasterImage.cpp b/image/src/RasterImage.cpp index b3bdcf74a42e..7626fc4da3b7 100644 --- a/image/src/RasterImage.cpp +++ b/image/src/RasterImage.cpp @@ -1518,22 +1518,6 @@ RasterImage::EnsureFrame(uint32_t aFramenum, int32_t aX, int32_t aY, 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 RasterImage::SetFrameAsNonPremult(uint32_t aFrameNum, bool aIsNonPremult) { diff --git a/image/src/RasterImage.h b/image/src/RasterImage.h index 256dd8a509a4..0d591c422889 100644 --- a/image/src/RasterImage.h +++ b/image/src/RasterImage.h @@ -222,8 +222,6 @@ public: uint32_t* imageLength, imgFrame** aFrame); - void FrameUpdated(uint32_t aFrameNum, nsIntRect& aUpdatedRect); - /* notification that the entire image has been decoded */ nsresult DecodingComplete();