Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGPoint.cpp File Reference
#include "nsSVGPoint.h"
#include "nsIDOMSVGMatrix.h"
#include "nsSVGValue.h"
#include "nsContentUtils.h"
#include "nsDOMError.h"

Go to the source code of this file.

Classes

class  nsSVGPoint
class  nsSVGReadonlyPoint

Functions

nsresult NS_NewSVGPoint (nsIDOMSVGPoint **result, float x, float y)
nsresult NS_NewSVGReadonlyPoint (nsIDOMSVGPoint **result, float x, float y)

Function Documentation

nsresult NS_NewSVGPoint ( nsIDOMSVGPoint **  result,
float  x,
float  y 
)

Definition at line 72 of file nsSVGPoint.cpp.

{
  *result = new nsSVGPoint(x, y);
  if (!*result)
    return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(*result);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGReadonlyPoint ( nsIDOMSVGPoint **  result,
float  x,
float  y 
)

Definition at line 189 of file nsSVGPoint.cpp.

{
  *result = new nsSVGReadonlyPoint(x, y);
  if (!*result)
    return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(*result);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: