nsInfoListImpl::SanityCheck(nsFrameList& aFrameList) {  PRInt32 length = aFrameList.GetLength(); NS_ASSERTION(length == mCount,"nsBox::ERROR!! Box info list count does not match frame count!!");   NS_ASSERTION(mLast == nsnull || mLast->next == nsnull,"nsBox::ERROR!! The last child is not really the last!!!"); nsIFrame* child = aFrameList.FirstChild(); nsCalculatedBoxInfo* info = mFirst; PRInt32 count = 0; while(child) { NS_ASSERTION(count <= mCount,"too many children!!!"); NS_ASSERTION(info->frame == child,"nsBox::ERROR!! box info list and child info lists don't match!!!"); info = info->next; child->GetNextSibling(&child); count++; }
nsBoxFrameInner::SanityCheck() { #ifdef TEST_SANITY mInfoList->SanityCheck(mOuter->mFrames); #endif
nsInfoListImpl::SanityCheck(nsFrameList& aFrameList){    // make sure the length match    PRInt32 length = aFrameList.GetLength();    NS_ASSERTION(length == mCount,"nsBox::ERROR!! Box info list count does not match frame count!!");    // make sure last makes sense    NS_ASSERTION(mLast == nsnull || mLast->next == nsnull,"nsBox::ERROR!! The last child is not really the last!!!");    nsIFrame* child = aFrameList.FirstChild();    nsCalculatedBoxInfo* info = mFirst;    PRInt32 count = 0;    while(child)    {       NS_ASSERTION(count <= mCount,"too many children!!!");       NS_ASSERTION(info->frame == child,"nsBox::ERROR!! box info list and child info lists don't match!!!");        info = info->next;       child->GetNextSibling(&child);       count++;    }}