Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines
nsSVGElement.h File Reference
#include "nsString.h"
#include "nsCOMPtr.h"
#include "nsIDOMSVGElement.h"
#include "nsGenericElement.h"
#include "nsISVGValue.h"
#include "nsISVGValueObserver.h"
#include "nsWeakReference.h"
#include "nsISVGContent.h"
#include "nsICSSStyleRule.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsSVGElement

Defines

#define NS_IMPL_NS_NEW_SVG_ELEMENT(_elementName)
 A macro to implement the NS_NewSVGXXXElement() functions.

Define Documentation

#define NS_IMPL_NS_NEW_SVG_ELEMENT (   _elementName)
Value:
nsresult                                                                     \
NS_NewSVG##_elementName##Element(nsIContent **aResult,                       \
                                 nsINodeInfo *aNodeInfo)                     \
{                                                                            \
  nsSVG##_elementName##Element *it =                                         \
    new nsSVG##_elementName##Element(aNodeInfo);                             \
  if (!it)                                                                   \
    return NS_ERROR_OUT_OF_MEMORY;                                           \
                                                                             \
  NS_ADDREF(it);                                                             \
                                                                             \
  nsresult rv = it->Init();                                                  \
                                                                             \
  if (NS_FAILED(rv)) {                                                       \
    NS_RELEASE(it);                                                          \
    return rv;                                                               \
  }                                                                          \
                                                                             \
  *aResult = it;                                                             \
                                                                             \
  return rv;                                                                 \
}

A macro to implement the NS_NewSVGXXXElement() functions.

Definition at line 169 of file nsSVGElement.h.