Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsSVGAngle.cpp File Reference
#include "nsSVGAngle.h"
#include "prdtoa.h"
#include "nsSVGAtoms.h"
#include "nsSVGValue.h"
#include "nsReadableUtils.h"
#include "nsTextFormatter.h"
#include "nsCRT.h"
#include "nsIDOMSVGNumber.h"
#include "nsISVGValueUtils.h"
#include "nsWeakReference.h"
#include "nsContentUtils.h"
#include <math.h>

Go to the source code of this file.

Classes

class  nsSVGAngle

Defines

#define M_PI   3.14159265358979323846

Functions

nsresult NS_NewSVGAngle (nsIDOMSVGAngle **result, float value, PRUint16 unit)
nsresult NS_NewSVGAngle (nsIDOMSVGAngle **result, const nsAString &value)

Define Documentation

#define M_PI   3.14159265358979323846

Definition at line 51 of file nsSVGAngle.cpp.


Function Documentation

nsresult NS_NewSVGAngle ( nsIDOMSVGAngle **  result,
float  value,
PRUint16  unit 
)

Definition at line 110 of file nsSVGAngle.cpp.

{
  nsSVGAngle *pl = new nsSVGAngle(value, unit);
  NS_ENSURE_TRUE(pl, NS_ERROR_OUT_OF_MEMORY);
  NS_ADDREF(pl);
  *result = pl;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGAngle ( nsIDOMSVGAngle **  result,
const nsAString &  value 
)

Definition at line 122 of file nsSVGAngle.cpp.

{
  *result = nsnull;
  nsSVGAngle *pl = new nsSVGAngle();
  NS_ENSURE_TRUE(pl, NS_ERROR_OUT_OF_MEMORY);
  NS_ADDREF(pl);
  if (NS_FAILED(pl->SetValueAsString(value))) {
    NS_RELEASE(pl);
    return NS_ERROR_FAILURE;
  }
  *result = pl;
  return NS_OK;
}  

Here is the call graph for this function: