Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsSVGCairoSurface.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_NewSVGCairoSurface (nsISVGRendererSurface **result, PRUint32 width, PRUint32 height)

Function Documentation

Definition at line 143 of file nsSVGCairoSurface.cpp.

{
  nsSVGCairoSurface* surf = new nsSVGCairoSurface();
  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: