Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGGDIPlusCanvas.cpp File Reference
#include <windows.h>
#include <unknwn.h>
#include <Gdiplus.h>
#include "nsCOMPtr.h"
#include "nsSVGGDIPlusCanvas.h"
#include "nsISVGGDIPlusCanvas.h"
#include "nsIRenderingContext.h"
#include "nsIDeviceContext.h"
#include "nsTransform2D.h"
#include "nsPresContext.h"
#include "nsRect.h"
#include "nsIRenderingContextWin.h"
#include "nsIDOMSVGMatrix.h"
#include "nsISVGGDIPlusSurface.h"
#include "nsVoidArray.h"

Go to the source code of this file.

Classes

class  nsSVGGDIPlusCanvas
 GDI+ canvas implementation. More...

Functions

nsresult NS_NewSVGGDIPlusCanvas (nsISVGRendererCanvas **result, nsIRenderingContext *ctx, nsPresContext *presContext, const nsRect &dirtyRect)

Function Documentation

nsresult NS_NewSVGGDIPlusCanvas ( nsISVGRendererCanvas **  result,
nsIRenderingContext ctx,
nsPresContext presContext,
const nsRect dirtyRect 
)

Definition at line 195 of file nsSVGGDIPlusCanvas.cpp.

{
  nsSVGGDIPlusCanvas* pg = new nsSVGGDIPlusCanvas();
  if (!pg) return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(pg);

  nsresult rv = pg->Init(ctx, presContext, dirtyRect);

  if (NS_FAILED(rv)) {
    NS_RELEASE(pg);
    return rv;
  }
  
  *result = pg;
  return rv;
}

Here is the call graph for this function: