Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsMathMLmrowFrame.cpp File Reference
#include "nsCOMPtr.h"
#include "nsFrame.h"
#include "nsPresContext.h"
#include "nsUnitConversion.h"
#include "nsStyleContext.h"
#include "nsStyleConsts.h"
#include "nsIRenderingContext.h"
#include "nsIFontMetrics.h"
#include "nsMathMLmrowFrame.h"

Go to the source code of this file.

Functions

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

Function Documentation

nsresult NS_NewMathMLmrowFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 56 of file nsMathMLmrowFrame.cpp.

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