Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsHTMLCanvasFrame.h File Reference
#include "nsSplittableFrame.h"
#include "nsString.h"
#include "nsAString.h"
#include "nsPresContext.h"
#include "nsIIOService.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsHTMLCanvasFrame

Functions

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

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;
}