Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes | Friends
nsFloatCacheList Class Reference

#include <nsLineBox.h>

Inheritance diagram for nsFloatCacheList:
Inheritance graph
[legend]
Collaboration diagram for nsFloatCacheList:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsFloatCacheList ()
 ~nsFloatCacheList ()
PRBool IsEmpty () const
PRBool NotEmpty () const
nsFloatCacheHead () const
nsFloatCacheTail () const
nsFloatCacheFind (nsIFrame *aOutOfFlowFrame)
void Remove (nsFloatCache *aElement)
void Append (nsFloatCacheFreeList &aList)

Protected Attributes

nsFloatCachemHead

Friends

class nsFloatCacheFreeList

Detailed Description

Definition at line 98 of file nsLineBox.h.


Constructor & Destructor Documentation

Definition at line 100 of file nsLineBox.h.

: mHead(nsnull) { }

Definition at line 848 of file nsLineBox.cpp.

{
  nsFloatCache* fc = mHead;
  while (fc) {
    nsFloatCache* next = fc->mNext;
    delete fc;
    fc = next;
  }
  mHead = nsnull;
}

Member Function Documentation

Definition at line 873 of file nsLineBox.cpp.

{
  NS_PRECONDITION(aList.NotEmpty(), "Appending empty list will fail");
  
  nsFloatCache* tail = Tail();
  if (tail) {
    tail->mNext = aList.mHead;
  }
  else {
    mHead = aList.mHead;
  }
  aList.mHead = nsnull;
  aList.mTail = nsnull;
}

Here is the call graph for this function:

nsFloatCache * nsFloatCacheList::Find ( nsIFrame aOutOfFlowFrame)

Definition at line 889 of file nsLineBox.cpp.

{
  nsFloatCache* fc = mHead;
  while (fc) {
    if (fc->mPlaceholder->GetOutOfFlowFrame() == aOutOfFlowFrame) {
      break;
    }
    fc = fc->Next();
  }
  return fc;
}

Here is the call graph for this function:

nsFloatCache* nsFloatCacheList::Head ( ) const [inline]

Definition at line 111 of file nsLineBox.h.

                             {
    return mHead;
  }

Here is the caller graph for this function:

PRBool nsFloatCacheList::IsEmpty ( void  ) const [inline]

Definition at line 103 of file nsLineBox.h.

                         {
    return nsnull == mHead;
  }
PRBool nsFloatCacheList::NotEmpty ( ) const [inline]

Definition at line 107 of file nsLineBox.h.

                          {
    return nsnull != mHead;
  }

Here is the caller graph for this function:

Definition at line 902 of file nsLineBox.cpp.

{
  nsFloatCache** fcp = &mHead;
  nsFloatCache* fc;
  while (nsnull != (fc = *fcp)) {
    if (fc == aElement) {
      *fcp = fc->mNext;
      break;
    }
    fcp = &fc->mNext;
  }
}

Definition at line 860 of file nsLineBox.cpp.

{
  nsFloatCache* fc = mHead;
  while (fc) {
    if (!fc->mNext) {
      break;
    }
    fc = fc->mNext;
  }
  return fc;
}

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class nsFloatCacheFreeList [friend]

Definition at line 128 of file nsLineBox.h.


Member Data Documentation

Definition at line 126 of file nsLineBox.h.


The documentation for this class was generated from the following files: