Assert when someone tries to give us out-of-flow kids. Bug 282943, r+sr=dbaron

This commit is contained in:
bzbarsky%mit.edu 2005-02-20 22:29:28 +00:00
Родитель a49b06f275
Коммит f6691a5e6d
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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