Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
nsSVGRendererCairo.cpp File Reference
#include "nsCOMPtr.h"
#include "nsISVGRenderer.h"
#include "nsSVGCairoPathGeometry.h"
#include "nsSVGCairoGlyphGeometry.h"
#include "nsSVGCairoGlyphMetrics.h"
#include "nsSVGCairoCanvas.h"
#include "nsSVGCairoRegion.h"
#include "nsSVGCairoSurface.h"
#include "cairo.h"

Go to the source code of this file.

Classes

class  nsSVGRendererCairo
 Cairo renderer factory. More...

Functions

nsresult NS_NewSVGRendererCairo (nsISVGRenderer **aResult)

Variables

cairo_surface_t * gSVGCairoDummySurface = nsnull

Function Documentation

Definition at line 92 of file nsSVGRendererCairo.cpp.

{
  NS_PRECONDITION(aResult != nsnull, "null ptr");
  if (! aResult)
    return NS_ERROR_NULL_POINTER;

  nsSVGRendererCairo* result = new nsSVGRendererCairo();
  if (! result)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(result);
  *aResult = result;
  return NS_OK;
}

Here is the call graph for this function:


Variable Documentation

cairo_surface_t* gSVGCairoDummySurface = nsnull

Definition at line 52 of file nsSVGRendererCairo.cpp.