Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsSVGGDIPlusSurface.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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: