Back to index

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

Go to the source code of this file.

Functions

nsresult NS_NewSVGAngle (nsIDOMSVGAngle **result, float value=0.0f, PRUint16 unit=nsIDOMSVGAngle::SVG_ANGLETYPE_UNSPECIFIED)
nsresult NS_NewSVGAngle (nsIDOMSVGAngle **result, const nsAString &value)

Function Documentation

Definition at line 110 of file nsSVGAngle.cpp.

{
  nsSVGAngle *pl = new nsSVGAngle(value, unit);
  NS_ENSURE_TRUE(pl, NS_ERROR_OUT_OF_MEMORY);
  NS_ADDREF(pl);
  *result = pl;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGAngle ( nsIDOMSVGAngle **  result,
const nsAString &  value 
)

Definition at line 122 of file nsSVGAngle.cpp.

{
  *result = nsnull;
  nsSVGAngle *pl = new nsSVGAngle();
  NS_ENSURE_TRUE(pl, NS_ERROR_OUT_OF_MEMORY);
  NS_ADDREF(pl);
  if (NS_FAILED(pl->SetValueAsString(value))) {
    NS_RELEASE(pl);
    return NS_ERROR_FAILURE;
  }
  *result = pl;
  return NS_OK;
}  

Here is the call graph for this function: