Back to index

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

Go to the source code of this file.

Classes

class  nsSVGAnimatedNumberList

Functions

nsresult NS_NewSVGAnimatedNumberList (nsIDOMSVGAnimatedNumberList **result, nsIDOMSVGNumberList *aBaseVal)

Function Documentation

Definition at line 192 of file nsSVGAnimatedNumberList.cpp.

{
  *result = nsnull;
  
  nsSVGAnimatedNumberList* animatedNumberList = new nsSVGAnimatedNumberList();
  if (!animatedNumberList) return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(animatedNumberList);

  if (NS_FAILED(animatedNumberList->Init(aBaseVal))) {
    NS_RELEASE(animatedNumberList);
    return NS_ERROR_FAILURE;
  }
  
  *result = (nsIDOMSVGAnimatedNumberList*) animatedNumberList;
  
  return NS_OK;
}

Here is the call graph for this function: