Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsAbsoluteItems Struct Reference
Inheritance diagram for nsAbsoluteItems:
Inheritance graph
[legend]
Collaboration diagram for nsAbsoluteItems:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsAbsoluteItems (nsIFrame *aContainingBlock)
void AddChild (nsIFrame *aChild)
PRBool RemoveChild (nsIFrame *aChild)

Public Attributes

nsIFramecontainingBlock
nsIFramechildList
nsIFramelastChild

Detailed Description

Definition at line 775 of file nsCSSFrameConstructor.cpp.


Constructor & Destructor Documentation

nsAbsoluteItems::nsAbsoluteItems ( nsIFrame aContainingBlock)

Definition at line 794 of file nsCSSFrameConstructor.cpp.

  : containingBlock(aContainingBlock)
{
}

Member Function Documentation

Reimplemented from nsFrameItems.

Definition at line 801 of file nsCSSFrameConstructor.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

PRBool nsFrameItems::RemoveChild ( nsIFrame aChild) [inherited]

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 {
    prev->SetNextSibling(sib->GetNextSibling());
  }
  if (sib == lastChild) {
    lastChild = prev;
  }
  sib->SetNextSibling(nsnull);
  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 777 of file nsCSSFrameConstructor.cpp.

Definition at line 707 of file nsCSSFrameConstructor.cpp.


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