Add assertion. Bug 382199, r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@230718 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2007-07-24 01:42:23 +00:00
parent 5e5430752e
commit 525f3e0e01

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