Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsHTMLCanvasFrame.cpp File Reference
#include "nsHTMLParts.h"
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"
#include "nsLayoutAtoms.h"
#include "nsHTMLCanvasFrame.h"
#include "nsICanvasElement.h"
#include "nsTransform2D.h"

Go to the source code of this file.

Defines

#define MINMAX(_value, _min, _max)

Functions

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

Define Documentation

#define MINMAX (   _value,
  _min,
  _max 
)
Value:
((_value) < (_min)           \
     ? (_min)                    \
     : ((_value) > (_max)        \
        ? (_max)                 \
        : (_value)))

Definition at line 69 of file nsHTMLCanvasFrame.cpp.


Function Documentation

nsresult NS_NewHTMLCanvasFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 50 of file nsHTMLCanvasFrame.cpp.

{
  nsHTMLCanvasFrame* it = new (aPresShell) nsHTMLCanvasFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function: