diff --git a/image/FrameAnimator.cpp b/image/FrameAnimator.cpp index 6be73a52fcfe..bfcf16e81e13 100644 --- a/image/FrameAnimator.cpp +++ b/image/FrameAnimator.cpp @@ -213,7 +213,6 @@ FrameAnimator::AdvanceFrame(AnimationState& aState, TimeStamp aTime) // Bad data if (GetTimeoutForFrame(aState, nextFrameIndex) < 0) { ret.animationFinished = true; - ret.error = true; } if (nextFrameIndex == 0) { @@ -229,7 +228,6 @@ FrameAnimator::AdvanceFrame(AnimationState& aState, TimeStamp aTime) aState.mCurrentAnimationFrameTime = GetCurrentImgFrameEndTime(aState); aState.mCurrentAnimationFrameIndex = nextFrameIndex; - ret.error = true; return ret; } diff --git a/image/FrameAnimator.h b/image/FrameAnimator.h index d259d76b1bea..a08482a0f42f 100644 --- a/image/FrameAnimator.h +++ b/image/FrameAnimator.h @@ -152,21 +152,15 @@ public: // Whether the animation has finished playing. bool animationFinished : 1; - // Whether an error has occurred when trying to advance a frame. Note that - // errors do not, on their own, end the animation. - bool error : 1; - RefreshResult() : frameAdvanced(false) , animationFinished(false) - , error(false) { } void Accumulate(const RefreshResult& other) { frameAdvanced = frameAdvanced || other.frameAdvanced; animationFinished = animationFinished || other.animationFinished; - error = error || other.error; dirtyRect = dirtyRect.Union(other.dirtyRect); } };