Fix assertion in bug 468645, per bzbarsky's followup review comment. r+sr=bzbarsky

This commit is contained in:
L. David Baron
2009-01-04 14:52:38 -05:00
parent f4d32dd3b2
commit 4dc1cd9094

View File

@@ -1112,7 +1112,8 @@ nsFrameManager::ReResolveStyleContext(nsPresContext *aPresContext,
nsStyleChangeList *aChangeList,
nsChangeHint aMinChange)
{
NS_ASSERTION(aFrame->GetContent() || !aFrame->GetParent(),
NS_ASSERTION(aFrame->GetContent() ||
(!aFrame->GetParent() && !aParentContent),
"frame must have content (unless viewport)");
// XXXldb get new context from prev-in-flow if possible, to avoid
// duplication. (Or should we just let |GetContext| handle that?)