Back to index

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

Go to the source code of this file.

Functions

nsresult NS_NewSVGAnimatedPreserveAspectRatio (nsIDOMSVGAnimatedPreserveAspectRatio **result, nsIDOMSVGPreserveAspectRatio *baseVal)

Function Documentation

Definition at line 189 of file nsSVGAnimatedPreserveAspectRatio.cpp.

{
  *result = nsnull;

  if (!baseVal) {
    NS_ERROR("need baseVal");
    return NS_ERROR_FAILURE;
  }

  nsSVGAnimatedPreserveAspectRatio* animatedPreserveAspectRatio = new nsSVGAnimatedPreserveAspectRatio();
  if (!animatedPreserveAspectRatio)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(animatedPreserveAspectRatio);
  animatedPreserveAspectRatio->Init(baseVal);
  *result = (nsIDOMSVGAnimatedPreserveAspectRatio*) animatedPreserveAspectRatio;

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: