Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsFrameItems Struct Reference
Inheritance diagram for nsFrameItems:
Inheritance graph
Collaboration diagram for nsFrameItems:
Collaboration graph

List of all members.

Public Member Functions

 nsFrameItems (nsIFrame *aFrame=nsnull)
void AddChild (nsIFrame *aChild)
PRBool RemoveChild (nsIFrame *aChild)

Public Attributes


Detailed Description

Definition at line 705 of file nsCSSFrameConstructor.cpp.

Constructor & Destructor Documentation

Definition at line 717 of file nsCSSFrameConstructor.cpp.

  : childList(aFrame), lastChild(aFrame)

Member Function Documentation

Reimplemented in nsAbsoluteItems.

Definition at line 723 of file nsCSSFrameConstructor.cpp.

#ifdef DEBUG
  nsIFrame* oldLastChild = lastChild;
  if (childList == nsnull) {
    childList = lastChild = aChild;
    NS_ASSERTION(aChild != lastChild,
                 "Same frame being added to frame list twice?");
    lastChild = aChild;
  // if aChild has siblings, lastChild needs to be the last one
  for (nsIFrame* sib = lastChild->GetNextSibling(); sib;
       sib = sib->GetNextSibling()) {
    NS_ASSERTION(oldLastChild != sib, "Loop in frame list");
    lastChild = sib;

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 748 of file nsCSSFrameConstructor.cpp.

  NS_PRECONDITION(aFrame, "null ptr");
  nsIFrame* prev = nsnull;
  nsIFrame* sib = childList;
  for (; sib && sib != aFrame; sib = sib->GetNextSibling()) {
    prev = sib;
  if (!sib) {
    return PR_FALSE;
  if (sib == childList) {
    childList = sib->GetNextSibling();
  } else {
  if (sib == lastChild) {
    lastChild = prev;
  return PR_TRUE;

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Definition at line 706 of file nsCSSFrameConstructor.cpp.

Definition at line 707 of file nsCSSFrameConstructor.cpp.

The documentation for this struct was generated from the following file: