Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsAreaFrame.cpp File Reference
#include "nsAreaFrame.h"
#include "nsBlockBandData.h"
#include "nsStyleContext.h"
#include "nsStyleConsts.h"
#include "nsPresContext.h"
#include "nsIViewManager.h"
#include "nsINodeInfo.h"
#include "nsHTMLAtoms.h"
#include "nsIView.h"
#include "nsHTMLParts.h"
#include "nsLayoutAtoms.h"

Go to the source code of this file.

Functions

nsresult NS_NewAreaFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame, PRUint32 aFlags)

Function Documentation

nsresult NS_NewAreaFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame,
PRUint32  aFlags 
)

Definition at line 59 of file nsAreaFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsAreaFrame* it = new (aPresShell) nsAreaFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  it->SetFlags(aFlags);
  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: