mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1330190 - Part 6: Add MOZ_DIAGNOSTIC_ASSERT for mIsComposing. r=birtles
Based on the other changesets in this series, we don't expect to be calling UpdateProperties() and ComposeStyle() from within ComposeStyle() itself. However, in case there is some scenario where that does still occur, we leave the mIsComposing check in place and add an equivalent MOZ_DIAGNOSTIC_ASSERT so that we are alerted if this does occur on debug / Nightly / DevEdition builds, but handle it gracefully on beta or release builds. MozReview-Commit-ID: 2cFpyMFR29Q --HG-- extra : rebase_source : 8d6175b8785dd062bda85eda7f06c01bec42fbee
This commit is contained in:
parent
fdd11f4f75
commit
f6d1e334f7
@ -277,6 +277,8 @@ KeyframeEffectReadOnly::UpdateProperties(nsStyleContext* aStyleContext)
|
||||
// Skip updating properties when we are composing style.
|
||||
// FIXME: Bug 1324966. Drop this check once we have a function to get
|
||||
// nsStyleContext without resolving animating style.
|
||||
MOZ_DIAGNOSTIC_ASSERT(!mIsComposingStyle,
|
||||
"Should not be called while processing ComposeStyle()");
|
||||
if (mIsComposingStyle) {
|
||||
return;
|
||||
}
|
||||
@ -465,6 +467,8 @@ KeyframeEffectReadOnly::ComposeStyle(
|
||||
RefPtr<AnimValuesStyleRule>& aStyleRule,
|
||||
const nsCSSPropertyIDSet& aPropertiesToSkip)
|
||||
{
|
||||
MOZ_DIAGNOSTIC_ASSERT(!mIsComposingStyle,
|
||||
"Should not be called recursively");
|
||||
if (mIsComposingStyle) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user