Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsMathMLmrootFrame.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 "nsMathMLmrootFrame.h"

Go to the source code of this file.

Defines

#define NS_SQR_CHAR_STYLE_CONTEXT_INDEX   0

Functions

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

Variables

static const PRUnichar kSqrChar = PRUnichar(0x221A)

Define Documentation

Definition at line 67 of file nsMathMLmrootFrame.cpp.


Function Documentation

nsresult NS_NewMathMLmrootFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 72 of file nsMathMLmrootFrame.cpp.

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

Variable Documentation

const PRUnichar kSqrChar = PRUnichar(0x221A) [static]

Definition at line 69 of file nsMathMLmrootFrame.cpp.