Convert one other assertion to a warning. b=310985

This commit is contained in:
dbaron%dbaron.org 2006-05-05 16:31:59 +00:00
parent 615888e1ee
commit 6e8e93c0aa

View File

@ -827,8 +827,10 @@ struct nsAutoLayoutPhase {
case eLayoutPhase_FrameC:
NS_ASSERTION(mPresContext->mLayoutPhaseCount[eLayoutPhase_Paint] == 0,
"constructing frames in the middle of a paint");
NS_ASSERTION(mPresContext->mLayoutPhaseCount[eLayoutPhase_Reflow] == 0,
"constructing frames in the middle of reflow");
// The popup code causes us to hit this too often to be an
// NS_ASSERTION, despite how scary it is.
NS_WARN_IF_FALSE(mPresContext->mLayoutPhaseCount[eLayoutPhase_Reflow] == 0,
"constructing frames in the middle of reflow");
// The nsXBLService::LoadBindings call in ConstructFrameInternal
// makes us hit this one too often to be an NS_ASSERTION,
// despite how scary it is.