Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsXFormsValueElement.cpp File Reference
#include "nsIXFormsValueElement.h"
#include "nsXFormsStubElement.h"
#include "nsIXTFGenericElementWrapper.h"
#include "nsIDOM3Node.h"
#include "nsXFormsUtils.h"
#include "nsIDOMElement.h"
#include "nsString.h"

Go to the source code of this file.

Classes

class  nsXFormsValueElement
 Implementation of the XForms <value> element. More...

Functions

 NS_IMPL_ISUPPORTS_INHERITED1 (nsXFormsValueElement, nsXFormsStubElement, nsIXFormsValueElement) NS_IMETHODIMP nsXFormsValueElement
 NS_NewXFormsValueElement (nsIXTFElement **aResult)

Function Documentation

Definition at line 72 of file nsXFormsValueElement.cpp.

{
  nsCOMPtr<nsIDOMElement> node;
  aWrapper->GetElementNode(getter_AddRefs(node));

  // It's ok to keep pointer to mElement.  mElement will have an
  // owning reference to this object, so as long as we null out mElement in
  // OnDestroyed, it will always be valid.

  mElement = node;
  NS_ASSERTION(mElement, "Wrapper is not an nsIDOMElement, we'll crash soon");

  return NS_OK;
}

Here is the call graph for this function:

Definition at line 112 of file nsXFormsValueElement.cpp.

{
  *aResult = new nsXFormsValueElement();
  if (!*aResult)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: