Back to index

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

Go to the source code of this file.

Classes

class  nsSVGStringProxyValue

Functions

nsresult NS_CreateSVGStringProxyValue (nsISVGValue *proxiedValue, nsISVGValue **aResult)

Function Documentation

nsresult NS_CreateSVGStringProxyValue ( nsISVGValue proxiedValue,
nsISVGValue **  aResult 
)

Definition at line 96 of file nsSVGStringProxyValue.cpp.

{
  *aResult = nsnull;
  
  nsSVGStringProxyValue *sp = new nsSVGStringProxyValue();
  if(!sp) return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(sp);
  if (!sp->Init(proxiedValue)) {
    NS_RELEASE(sp);
    return NS_ERROR_FAILURE;
  }
  
  *aResult = sp;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: