Bug 702503 - Remove PR_TRUE/PR_FALSE added with bug 666446 and replace with bool values. r=dholbert
authorScott Johnson <sjohnson@mozilla.com>
Tue, 15 Nov 2011 15:45:43 +1300
changeset 80246 4829dd3ae90064f2042981cc6df04f9873d9b84d
parent 80245 332d4787b4300aff20714d66c640b47eaacb8d46
child 80247 c9abc8ef462668fa53738eb92f1a5f3877b70cef
push id21481
push userbmo@edmorley.co.uk
push dateTue, 15 Nov 2011 19:07:44 +0000
treeherdermozilla-central@fd478c02c29c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs702503, 666446
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 702503 - Remove PR_TRUE/PR_FALSE added with bug 666446 and replace with bool values. r=dholbert
image/src/RasterImage.cpp
--- a/image/src/RasterImage.cpp
+++ b/image/src/RasterImage.cpp
@@ -341,17 +341,17 @@ RasterImage::AdvanceFrame(TimeStamp aTim
   // If we're done decoding the next frame, go ahead and display it now and
   // reinit with the next frame's delay time.
   if (haveFullNextFrame) {
     if (mFrames.Length() == nextFrameIndex) {
       // End of Animation, unless we are looping forever
 
       // If animation mode is "loop once", it's time to stop animating
       if (mAnimationMode == kLoopOnceAnimMode || mLoopCount == 0) {
-        mAnimationFinished = PR_TRUE;
+        mAnimationFinished = true;
         EvaluateAnimation();
       }
 
       // We may have used compositingFrame to build a frame, and then copied
       // it back into mFrames[..].  If so, delete composite to save memory
       if (mAnim->compositingFrame && mAnim->lastCompositedFrameIndex == -1) {
         mAnim->compositingFrame = nsnull;
       }
@@ -378,17 +378,17 @@ RasterImage::AdvanceFrame(TimeStamp aTim
 
   } else {
     // Uh oh, the frame we want to show is currently being decoded (partial)
     // Wait until the next refresh driver tick and try again
     return false;
   }
 
   if (!(timeout > 0)) {
-    mAnimationFinished = PR_TRUE;
+    mAnimationFinished = true;
     EvaluateAnimation();
   }
 
   imgFrame *frameToUse = nsnull;
 
   if (nextFrameIndex == 0) {
     frameToUse = nextFrame;
     *aDirtyRect = mAnim->firstFrameRefreshArea;
@@ -399,23 +399,23 @@ RasterImage::AdvanceFrame(TimeStamp aTim
       return false;
     }
 
     // Change frame
     if (NS_FAILED(DoComposite(aDirtyRect, curFrame,
                               nextFrame, nextFrameIndex))) {
       // something went wrong, move on to next
       NS_WARNING("RasterImage::AdvanceFrame(): Compositing of frame failed");
-      nextFrame->SetCompositingFailed(PR_TRUE);
+      nextFrame->SetCompositingFailed(true);
       mAnim->currentAnimationFrameIndex = nextFrameIndex;
       mAnim->currentAnimationFrameTime = aTime;
       return false;
     }
 
-    nextFrame->SetCompositingFailed(PR_FALSE);
+    nextFrame->SetCompositingFailed(false);
   }
 
   // Set currentAnimationFrameIndex at the last possible moment
   mAnim->currentAnimationFrameIndex = nextFrameIndex;
   mAnim->currentAnimationFrameTime = aTime;
 
   return true;
 }