Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsBRFrame.cpp File Reference
#include "nsCOMPtr.h"
#include "nsFrame.h"
#include "nsHTMLParts.h"
#include "nsPresContext.h"
#include "nsLineLayout.h"
#include "nsStyleConsts.h"
#include "nsHTMLAtoms.h"
#include "nsIFontMetrics.h"
#include "nsIRenderingContext.h"
#include "nsLayoutAtoms.h"
#include "nsTextTransformer.h"
#include "nsIContent.h"
#include "nsIFrameSelection.h"

Go to the source code of this file.

Classes

class  BRFrame

Functions

nsresult NS_NewBRFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)

Function Documentation

nsresult NS_NewBRFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 84 of file nsBRFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsIFrame* frame = new (aPresShell) BRFrame;
  if (nsnull == frame) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = frame;
  return NS_OK;
}

Here is the caller graph for this function: