mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Add assertion. Bug 382199, r+sr=dbaron
This commit is contained in:
parent
b845616ae0
commit
fc099802ed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user