Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsFieldSetFrame.cpp File Reference
#include "nsHTMLContainerFrame.h"
#include "nsLegendFrame.h"
#include "nsIDOMNode.h"
#include "nsIDOMHTMLFieldSetElement.h"
#include "nsIDOMHTMLLegendElement.h"
#include "nsCSSRendering.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsISupports.h"
#include "nsIAtom.h"
#include "nsPresContext.h"
#include "nsFrameManager.h"
#include "nsHTMLParts.h"
#include "nsHTMLAtoms.h"
#include "nsLayoutAtoms.h"
#include "nsStyleConsts.h"
#include "nsFont.h"
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"
#include "nsSpaceManager.h"

Go to the source code of this file.

Classes

class  nsFieldSetFrame

Functions

nsresult NS_NewFieldSetFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame, PRUint32 aStateFlags)

Function Documentation

nsresult NS_NewFieldSetFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame,
PRUint32  aStateFlags 
)

Definition at line 131 of file nsFieldSetFrame.cpp.

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

  // set the state flags (if any are provided)
  it->AddStateBits(aStateFlags);
  
  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: