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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user