Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsStackFrame.cpp File Reference
#include "nsStackFrame.h"
#include "nsStyleContext.h"
#include "nsPresContext.h"
#include "nsIContent.h"
#include "nsCOMPtr.h"
#include "nsUnitConversion.h"
#include "nsXULAtoms.h"
#include "nsHTMLAtoms.h"
#include "nsHTMLParts.h"
#include "nsIPresShell.h"
#include "nsStyleChangeList.h"
#include "nsCSSRendering.h"
#include "nsIViewManager.h"
#include "nsBoxLayoutState.h"
#include "nsStackLayout.h"

Go to the source code of this file.

Functions

nsresult NS_NewStackFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame, nsIBoxLayout *aLayoutManager)

Function Documentation

nsresult NS_NewStackFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame,
nsIBoxLayout aLayoutManager = nsnull 
)

Definition at line 62 of file nsStackFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsStackFrame* it = new (aPresShell) nsStackFrame(aPresShell, aLayoutManager);
  if (nsnull == it)
    return NS_ERROR_OUT_OF_MEMORY;

  *aNewFrame = it;

  return NS_OK;
  
} // NS_NewStackFrame

Here is the caller graph for this function: