Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGLibartGlyphGeometryFT.cpp File Reference
#include "nsCOMPtr.h"
#include "nsISVGRendererGlyphGeometry.h"
#include "nsIDOMSVGMatrix.h"
#include "nsISVGGlyphGeometrySource.h"
#include "nsPromiseFlatString.h"
#include "nsPresContext.h"
#include "nsMemory.h"
#include "nsSVGLibartFreetype.h"
#include "nsIServiceManager.h"
#include "nsISVGLibartGlyphMetricsFT.h"
#include "libart-incs.h"
#include "nsISVGLibartCanvas.h"
#include "nsIDeviceContext.h"
#include "nsIComponentManager.h"
#include "nsSVGLibartGradient.h"
#include "nsSVGTypeCIDs.h"
#include "nsIDOMSVGRect.h"

Go to the source code of this file.

Classes

class  nsSVGLibartGlyphGeometryFT
 Libart freetype-based glyph geometry implementation. More...

Functions

nsresult NS_NewSVGLibartGlyphGeometryFT (nsISVGRendererGlyphGeometry **result, nsISVGGlyphGeometrySource *src)

Function Documentation

Definition at line 119 of file nsSVGLibartGlyphGeometryFT.cpp.

{
  *result = nsnull;
  
  nsSVGLibartGlyphGeometryFT* gg = new nsSVGLibartGlyphGeometryFT();
  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: