Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGAnimatedLength.cpp File Reference
#include "nsSVGValue.h"
#include "nsWeakReference.h"
#include "nsSVGAnimatedLength.h"
#include "nsSVGLength.h"
#include "nsContentUtils.h"

Go to the source code of this file.

Classes

class  nsSVGAnimatedLength

Functions

nsresult NS_NewSVGAnimatedLength (nsIDOMSVGAnimatedLength **aResult, nsIDOMSVGLength *baseVal)

Function Documentation

Definition at line 190 of file nsSVGAnimatedLength.cpp.

{
  *aResult = nsnull;
  
  nsSVGAnimatedLength* animatedLength = new nsSVGAnimatedLength();
  if(!animatedLength) return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(animatedLength);

//  nsCOMPtr<nsIDOMSVGLength> baseVal;
//  NS_NewSVGLength(getter_AddRefs(baseVal), context);
  
  animatedLength->Init(baseVal);
  
  *aResult = (nsIDOMSVGAnimatedLength*) animatedLength;
  
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: