Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsMathMLmfracFrame.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 "nsMathMLmfencedFrame.h"
#include "nsMathMLmfracFrame.h"

Go to the source code of this file.

Defines

#define THIN_FRACTION_LINE   0.5f
#define THIN_FRACTION_LINE_MINIMUM_PIXELS   1
#define MEDIUM_FRACTION_LINE   1.5f
#define MEDIUM_FRACTION_LINE_MINIMUM_PIXELS   2
#define THICK_FRACTION_LINE   2.0f
#define THICK_FRACTION_LINE_MINIMUM_PIXELS   4
#define NS_SLASH_CHAR_STYLE_CONTEXT_INDEX   0

Functions

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

Variables

static const PRUnichar kSlashChar = PRUnichar('/')

Define Documentation

Definition at line 62 of file nsMathMLmfracFrame.cpp.

Definition at line 63 of file nsMathMLmfracFrame.cpp.

Definition at line 69 of file nsMathMLmfracFrame.cpp.

Definition at line 65 of file nsMathMLmfracFrame.cpp.

Definition at line 66 of file nsMathMLmfracFrame.cpp.

Definition at line 59 of file nsMathMLmfracFrame.cpp.

Definition at line 60 of file nsMathMLmfracFrame.cpp.


Function Documentation

nsresult NS_NewMathMLmfracFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 74 of file nsMathMLmfracFrame.cpp.

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

Variable Documentation

Definition at line 71 of file nsMathMLmfracFrame.cpp.