Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsSVGGDIPlusGlyphGeometry.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_NewSVGGDIPlusGlyphGeometry (nsISVGRendererGlyphGeometry **result, nsISVGGlyphGeometrySource *src)

Function Documentation

Definition at line 134 of file nsSVGGDIPlusGlyphGeometry.cpp.

{
  *result = nsnull;
  
  nsSVGGDIPlusGlyphGeometry* gg = new nsSVGGDIPlusGlyphGeometry();
  if (!gg) return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(gg);

  nsresult rv = gg->Init(src);

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

Here is the call graph for this function: