Add assertion. Bug 382199, r+sr=dbaron

This commit is contained in:
bzbarsky@mit.edu 2007-07-23 18:42:23 -07:00
parent b845616ae0
commit fc099802ed

View File

@ -4739,6 +4739,11 @@ nsBlockFrame::AddFrames(nsIFrame* aFrameList,
// structures to fit.
nsIFrame* newFrame = aFrameList;
while (newFrame) {
NS_ASSERTION(newFrame->GetType() != nsGkAtoms::placeholderFrame ||
(!newFrame->GetStyleDisplay()->IsAbsolutelyPositioned() &&
!newFrame->GetStyleDisplay()->IsFloating()),
"Placeholders should not float or be positioned");
PRBool isBlock = newFrame->GetStyleDisplay()->IsBlockOutside();
// If the frame is a block frame, or if there is no previous line or if the