Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsProgressMeterFrame.cpp File Reference
#include "nsProgressMeterFrame.h"
#include "nsCSSRendering.h"
#include "nsIContent.h"
#include "nsPresContext.h"
#include "nsHTMLAtoms.h"
#include "nsXULAtoms.h"
#include "nsINameSpaceManager.h"
#include "nsCOMPtr.h"
#include "nsBoxLayoutState.h"

Go to the source code of this file.

Functions

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

Function Documentation

nsresult NS_NewProgressMeterFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 60 of file nsProgressMeterFrame.cpp.

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

  *aNewFrame = it;
  return NS_OK;
  
} // NS_NewProgressMeterFrame

Here is the caller graph for this function: