Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsSVGLibartPathGeometry.cpp File Reference
#include "nsCOMPtr.h"
#include "nsSVGLibartPathGeometry.h"
#include "nsISVGRendererPathGeometry.h"
#include "nsISVGLibartCanvas.h"
#include "nsIDOMSVGMatrix.h"
#include "nsSVGLibartRegion.h"
#include "nsISVGRendererRegion.h"
#include "nsSVGLibartBPathBuilder.h"
#include "nsSVGLibartGradient.h"
#include "nsISVGRendererPathBuilder.h"
#include "nsISVGPathGeometrySource.h"
#include "nsISVGGradient.h"
#include "nsSVGFill.h"
#include "nsSVGStroke.h"
#include "nsIServiceManager.h"
#include "nsMemory.h"
#include "prdtoa.h"
#include "nsString.h"
#include "nsIDOMSVGRect.h"
#include "nsSVGTypeCIDs.h"
#include "nsIComponentManager.h"
#include "nsISVGPathFlatten.h"

Go to the source code of this file.

Classes

class  nsSVGLibartPathGeometry
 Libart path geometry implementation. More...

Defines

#define SVG_BEZIER_FLATNESS   0.5

Functions

nsresult NS_NewSVGLibartPathGeometry (nsISVGRendererPathGeometry **result, nsISVGPathGeometrySource *src)

Define Documentation

Definition at line 67 of file nsSVGLibartPathGeometry.cpp.


Function Documentation

Definition at line 136 of file nsSVGLibartPathGeometry.cpp.

{
  nsSVGLibartPathGeometry* pg = new nsSVGLibartPathGeometry();
  if (!pg) return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(pg);

  nsresult rv = pg->Init(src);

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

Here is the call graph for this function: