Bug 1457249 - Assert that there is an animation value set by animations when we skip calculation for newly animation value. r?kats
MozReview-Commit-ID: F85nAmKIGCA
--- a/gfx/layers/composite/AsyncCompositionManager.cpp
+++ b/gfx/layers/composite/AsyncCompositionManager.cpp
@@ -679,21 +679,25 @@ SampleAnimations(Layer* aLayer,
}
case AnimationHelper::SampleResult::Skipped:
// We don't need to update animation values for this layer since
// the values haven't changed.
#ifdef DEBUG
// Sanity check that the animation value is surely unchanged.
switch (animations[0].property()) {
case eCSSProperty_opacity:
+ MOZ_ASSERT(
+ layer->AsHostLayer()->GetShadowOpacitySetByAnimation());
MOZ_ASSERT(FuzzyEqualsMultiplicative(
layer->AsHostLayer()->GetShadowOpacity(),
*(aStorage->GetAnimationOpacity(layer->GetCompositorAnimationsId()))));
break;
case eCSSProperty_transform: {
+ MOZ_ASSERT(
+ layer->AsHostLayer()->GetShadowTransformSetByAnimation());
AnimatedValue* transform =
aStorage->GetAnimatedValue(layer->GetCompositorAnimationsId());
MOZ_ASSERT(
transform->mTransform.mTransformInDevSpace.FuzzyEqualsMultiplicative(
(layer->AsHostLayer()->GetShadowBaseTransform())));
break;
}
default: