From 4ac31f33e01162cde5f78a38194414eae7764b74 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Mon, 9 Apr 2018 20:15:59 +0900 Subject: [PATCH] Bug 1412716 - Drop KeyframeEffectReadOnly::mIsComposingStyle. r=emilio The flag was introduced in bug 1322291 to prevent recursive calls of KeyframeEffectReadOnly::ComposeStyle() on the old style system. On the new style system we never call the function recursively. MozReview-Commit-ID: L5gb8G3bl4M --HG-- extra : rebase_source : 3b01c2c3ff97b8890bf13095dd32b834270d00df --- dom/animation/KeyframeEffectReadOnly.cpp | 18 ------------------ dom/animation/KeyframeEffectReadOnly.h | 3 --- 2 files changed, 21 deletions(-) diff --git a/dom/animation/KeyframeEffectReadOnly.cpp b/dom/animation/KeyframeEffectReadOnly.cpp index 20b7070b159a..0de073087504 100644 --- a/dom/animation/KeyframeEffectReadOnly.cpp +++ b/dom/animation/KeyframeEffectReadOnly.cpp @@ -283,15 +283,6 @@ KeyframeEffectReadOnly::UpdateProperties(const ComputedStyle* aStyle) { MOZ_ASSERT(aStyle); - // Skip updating properties when we are composing style. - // FIXME: Bug 1324966. Drop this check once we have a function to get - // ComputedStyle without resolving animating style. - MOZ_DIAGNOSTIC_ASSERT(!mIsComposingStyle, - "Should not be called while processing ComposeStyle()"); - if (mIsComposingStyle) { - return; - } - nsTArray properties = BuildProperties(aStyle); // We need to update base styles even if any properties are not changed at all @@ -426,15 +417,6 @@ KeyframeEffectReadOnly::ComposeStyle( RawServoAnimationValueMap& aComposeResult, const nsCSSPropertyIDSet& aPropertiesToSkip) { - MOZ_DIAGNOSTIC_ASSERT(!mIsComposingStyle, - "Should not be called recursively"); - if (mIsComposingStyle) { - return; - } - - AutoRestore isComposingStyle(mIsComposingStyle); - mIsComposingStyle = true; - ComputedTiming computedTiming = GetComputedTiming(); // If the progress is null, we don't have fill data for the current diff --git a/dom/animation/KeyframeEffectReadOnly.h b/dom/animation/KeyframeEffectReadOnly.h index fdef5acdece0..ada4ddfb3aeb 100644 --- a/dom/animation/KeyframeEffectReadOnly.h +++ b/dom/animation/KeyframeEffectReadOnly.h @@ -421,9 +421,6 @@ private: nsChangeHint_AddOrRemoveTransform | nsChangeHint_UpdateTransformLayer); } - - // FIXME: This flag will be removed in bug 1324966. - bool mIsComposingStyle = false; }; } // namespace dom