Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsSVGAnimatedNumber.h File Reference
#include "nsIDOMSVGAnimatedNumber.h"
#include "nsIDOMSVGNumber.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nsresult NS_NewSVGAnimatedNumber (nsIDOMSVGAnimatedNumber **result, float baseVal)

Function Documentation

nsresult NS_NewSVGAnimatedNumber ( nsIDOMSVGAnimatedNumber **  result,
float  baseVal 
)

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: