Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsLeafBoxFrame.cpp File Reference
#include "nsLeafBoxFrame.h"
#include "nsBoxFrame.h"
#include "nsCOMPtr.h"
#include "nsIDeviceContext.h"
#include "nsIFontMetrics.h"
#include "nsHTMLAtoms.h"
#include "nsXULAtoms.h"
#include "nsPresContext.h"
#include "nsIRenderingContext.h"
#include "nsStyleContext.h"
#include "nsIContent.h"
#include "nsINameSpaceManager.h"
#include "nsBoxLayoutState.h"
#include "nsWidgetsCID.h"
#include "nsIViewManager.h"
#include "nsHTMLContainerFrame.h"

Go to the source code of this file.

Functions

static NS_DEFINE_IID (kWidgetCID, NS_CHILD_CID)
nsresult NS_NewLeafBoxFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)

Function Documentation

static NS_DEFINE_IID ( kWidgetCID  ,
NS_CHILD_CID   
) [static]
nsresult NS_NewLeafBoxFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 70 of file nsLeafBoxFrame.cpp.

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

  // it->SetFlags(aFlags);
  *aNewFrame = it;
  return NS_OK;
  
} // NS_NewTextFrame

Here is the caller graph for this function: