Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsFirstLetterFrame.cpp File Reference
#include "nsCOMPtr.h"
#include "nsHTMLContainerFrame.h"
#include "nsPresContext.h"
#include "nsStyleContext.h"
#include "nsIContent.h"
#include "nsLineLayout.h"
#include "nsHTMLAtoms.h"
#include "nsLayoutAtoms.h"
#include "nsAutoPtr.h"
#include "nsStyleSet.h"
#include "nsFrameManager.h"

Go to the source code of this file.

Classes

class  nsFirstLetterFrame

Defines

#define nsFirstLetterFrameSuper   nsHTMLContainerFrame

Functions

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

Define Documentation

Definition at line 49 of file nsFirstLetterFrame.cpp.


Function Documentation

nsresult NS_NewFirstLetterFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 94 of file nsFirstLetterFrame.cpp.

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

Here is the caller graph for this function: