зеркало из https://github.com/mozilla/gecko-dev.git
Move assertion up to where we have a chance of actually seeing it.
This commit is contained in:
Родитель
0c3706888c
Коммит
60e75026b0
|
@ -765,6 +765,8 @@ nsStyleSet::NotifyStyleContextDestroyed(nsPresContext* aPresContext,
|
||||||
if (mInShutdown)
|
if (mInShutdown)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
NS_ASSERTION(mRuleWalker->AtRoot(), "Rule walker should be at root");
|
||||||
|
|
||||||
if (!aStyleContext->GetParent()) {
|
if (!aStyleContext->GetParent()) {
|
||||||
mRoots.RemoveElement(aStyleContext);
|
mRoots.RemoveElement(aStyleContext);
|
||||||
}
|
}
|
||||||
|
@ -781,7 +783,6 @@ nsStyleSet::NotifyStyleContextDestroyed(nsPresContext* aPresContext,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sweep the rule tree.
|
// Sweep the rule tree.
|
||||||
NS_ASSERTION(mRuleWalker->AtRoot(), "Rule walker should be at root");
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
PRBool deleted =
|
PRBool deleted =
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче