Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsSpacerFrame.cpp File Reference
#include "nsHTMLParts.h"
#include "nsFrame.h"
#include "nsLineLayout.h"
#include "nsPresContext.h"
#include "nsHTMLAtoms.h"
#include "nsUnitConversion.h"
#include "nsStyleConsts.h"
#include "nsINameSpaceManager.h"

Go to the source code of this file.

Classes

class  SpacerFrame

Defines

#define TYPE_WORD   0
#define TYPE_LINE   1
#define TYPE_IMAGE   2

Functions

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

Define Documentation

#define TYPE_IMAGE   2

Definition at line 49 of file nsSpacerFrame.cpp.

#define TYPE_LINE   1

Definition at line 48 of file nsSpacerFrame.cpp.

#define TYPE_WORD   0

Definition at line 47 of file nsSpacerFrame.cpp.


Function Documentation

nsresult NS_NewSpacerFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 69 of file nsSpacerFrame.cpp.

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

Here is the caller graph for this function: