Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGGDIPlusSurface.cpp File Reference
#include <windows.h>
#include <unknwn.h>
#include <Gdiplus.h>
#include "nsISupports.h"
#include "nsCOMPtr.h"
#include "nsSVGGDIPlusSurface.h"
#include "nsISVGGDIPlusSurface.h"

Go to the source code of this file.

Classes

class  nsSVGGDIPlusSurface
 GDIPlus surface implementation. More...

Functions

nsresult NS_NewSVGGDIPlusSurface (nsISVGRendererSurface **result, PRUint32 width, PRUint32 height)

Function Documentation

Definition at line 110 of file nsSVGGDIPlusSurface.cpp.

{
  nsSVGGDIPlusSurface* surf = new nsSVGGDIPlusSurface();
  if (!surf) return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(surf);

  nsresult rv = surf->Init(width, height);

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

Here is the call graph for this function: