Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsStackLayout.cpp File Reference
#include "nsStackLayout.h"
#include "nsCOMPtr.h"
#include "nsBoxLayoutState.h"
#include "nsBox.h"
#include "nsBoxFrame.h"
#include "nsHTMLAtoms.h"
#include "nsXULAtoms.h"
#include "nsIContent.h"
#include "nsINameSpaceManager.h"

Go to the source code of this file.

Functions

nsresult NS_NewStackLayout (nsIPresShell *aPresShell, nsCOMPtr< nsIBoxLayout > &aNewLayout)
 Eric D Vaughan A frame that can have multiple children.

Function Documentation

nsresult NS_NewStackLayout ( nsIPresShell aPresShell,
nsCOMPtr< nsIBoxLayout > &  aNewLayout 
)

Eric D Vaughan A frame that can have multiple children.

Only one child may be displayed at one time. So the can be flipped though like a deck of cards.

Definition at line 59 of file nsStackLayout.cpp.

{
  if (!nsStackLayout::gInstance) {
    nsStackLayout::gInstance = new nsStackLayout();
    NS_IF_ADDREF(nsStackLayout::gInstance);
  }
  // we have not instance variables so just return our static one.
  aNewLayout = nsStackLayout::gInstance;
  return NS_OK;
} 

Here is the caller graph for this function: