From f6691a5e6d3083d3cf881020031fbc8dde838054 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Sun, 20 Feb 2005 22:29:28 +0000 Subject: [PATCH] Assert when someone tries to give us out-of-flow kids. Bug 282943, r+sr=dbaron --- layout/xul/base/src/nsBoxFrame.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layout/xul/base/src/nsBoxFrame.cpp b/layout/xul/base/src/nsBoxFrame.cpp index b67618b1782..3da4c436a63 100644 --- a/layout/xul/base/src/nsBoxFrame.cpp +++ b/layout/xul/base/src/nsBoxFrame.cpp @@ -1158,6 +1158,7 @@ NS_IMETHODIMP nsBoxFrame::RemoveFrame(nsIAtom* aListName, nsIFrame* aOldFrame) { + NS_PRECONDITION(!aListName, "We don't support out-of-flow kids"); nsPresContext* presContext = GetPresContext(); nsBoxLayoutState state(presContext); @@ -1182,6 +1183,7 @@ nsBoxFrame::InsertFrames(nsIAtom* aListName, nsIFrame* aPrevFrame, nsIFrame* aFrameList) { + NS_PRECONDITION(!aListName, "We don't support out-of-flow kids"); nsBoxLayoutState state(GetPresContext()); // insert the child frames @@ -1208,6 +1210,7 @@ NS_IMETHODIMP nsBoxFrame::AppendFrames(nsIAtom* aListName, nsIFrame* aFrameList) { + NS_PRECONDITION(!aListName, "We don't support out-of-flow kids"); nsBoxLayoutState state(GetPresContext()); // append the new frames