Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGAnimatedNumber.cpp File Reference
#include "nsSVGAnimatedNumber.h"
#include "nsTextFormatter.h"
#include "prdtoa.h"
#include "nsSVGValue.h"
#include "nsISVGValueUtils.h"
#include "nsDOMError.h"
#include "nsContentUtils.h"

Go to the source code of this file.

Classes

class  nsSVGAnimatedNumber

Functions

nsresult NS_NewSVGAnimatedNumber (nsIDOMSVGAnimatedNumber **aResult, float aBaseVal)

Function Documentation

nsresult NS_NewSVGAnimatedNumber ( nsIDOMSVGAnimatedNumber **  aResult,
float  aBaseVal 
)

Definition at line 196 of file nsSVGAnimatedNumber.cpp.

{
  *aResult = nsnull;
  
  nsSVGAnimatedNumber* animatedNumber = new nsSVGAnimatedNumber();
  if (!animatedNumber) return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(animatedNumber);

  animatedNumber->Init(aBaseVal);
  
  *aResult = (nsIDOMSVGAnimatedNumber*) animatedNumber;
  
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: