Bug 1342957 - Fix incorrect MOZ_ASSERT in AnimationEffectReadOnly. draft
authorBoris Chiou <boris.chiou@gmail.com>
Tue, 28 Feb 2017 01:38:52 +0800
changeset 490117 5c637235497225bca5f9709102a87c9508e56213
parent 490032 106a96755d3bcebe64bbbc3b521d65d262ba9c02
child 547172 5b972c9d2231d79ec9c0e591c1d300b31bc3ab73
push id47001
push userbmo:boris.chiou@gmail.com
push dateMon, 27 Feb 2017 17:39:24 +0000
bugs1342957
milestone54.0a1
Bug 1342957 - Fix incorrect MOZ_ASSERT in AnimationEffectReadOnly. MozReview-Commit-ID: 6amRZ9AGudQ
dom/animation/AnimationEffectReadOnly.cpp
--- a/dom/animation/AnimationEffectReadOnly.cpp
+++ b/dom/animation/AnimationEffectReadOnly.cpp
@@ -229,17 +229,17 @@ AnimationEffectReadOnly::GetComputedTimi
       break;
     case PlaybackDirection::Alternate:
       thisIterationReverse = (result.mCurrentIteration & 1) == 1;
       break;
     case PlaybackDirection::Alternate_reverse:
       thisIterationReverse = (result.mCurrentIteration & 1) == 0;
       break;
     default:
-      MOZ_ASSERT(true, "Unknown PlaybackDirection type");
+      MOZ_ASSERT_UNREACHABLE("Unknown PlaybackDirection type");
   }
   if (thisIterationReverse) {
     progress = 1.0 - progress;
   }
 
   // Calculate the 'before flag' which we use when applying step timing
   // functions.
   if ((result.mPhase == ComputedTiming::AnimationPhase::After &&