Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsISVGValue.h File Reference
#include "nsISupports.h"
#include "nsString.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsISVGValue

Defines

#define NS_ISVGVALUE_IID   { 0xd8299a5e, 0xaf9a, 0x4bad, { 0x98, 0x45, 0xfb, 0x1b, 0x6e, 0x2e, 0xed, 0x19 } }

Functions

nsresult NS_CreateSVGGenericStringValue (const nsAString &aValue, nsISVGValue **aResult)
nsresult NS_CreateSVGStringProxyValue (nsISVGValue *proxiedValue, nsISVGValue **aResult)

Define Documentation

#define NS_ISVGVALUE_IID   { 0xd8299a5e, 0xaf9a, 0x4bad, { 0x98, 0x45, 0xfb, 0x1b, 0x6e, 0x2e, 0xed, 0x19 } }

Definition at line 61 of file nsISVGValue.h.


Function Documentation

nsresult NS_CreateSVGGenericStringValue ( const nsAString &  aValue,
nsISVGValue **  aResult 
)

Definition at line 66 of file nsSVGGenericStringValue.cpp.

{
  NS_PRECONDITION(aResult != nsnull, "null ptr");
  if (! aResult) return NS_ERROR_NULL_POINTER;
  
  *aResult = (nsISVGValue*) new nsSVGGenericStringValue(aValue);
  if(!*aResult) return NS_ERROR_OUT_OF_MEMORY;
  
  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

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: