Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsListItemFrame.cpp File Reference
#include "nsListItemFrame.h"
#include "nsCOMPtr.h"
#include "nsINameSpaceManager.h"
#include "nsXULAtoms.h"

Go to the source code of this file.

Functions

nsresult NS_NewListItemFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame, PRBool aIsRoot, nsIBoxLayout *aLayoutManager)

Function Documentation

nsresult NS_NewListItemFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame,
PRBool  aIsRoot,
nsIBoxLayout aLayoutManager 
)

Definition at line 104 of file nsListItemFrame.cpp.

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

  *aNewFrame = it;
  return NS_OK;
  
} // NS_NewListItemFrame

Here is the caller graph for this function: