Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
IEHtmlNode.cpp File Reference
#include "stdafx.h"
#include "IEHtmlNode.h"
#include "plhash.h"
#include "nsIDOMHTMLButtonElement.h"
#include "nsIDOMHTMLElement.h"
#include "IEHtmlButtonElement.h"
#include "IEHtmlElement.h"

Go to the source code of this file.

Defines

#define CREATE_FROM_DOMNODE(nsInterface, WrapperType, errorMsg)
#define SIB_NODE_GET_NUMERIC(function, numtype)
#define SIB_NODE_GET_ELEMENT(function, fn_elt_type)
#define SIB_STD_NOTIMPL

Functions

static PLHashNumber PR_CALLBACK HashFunction (const void *key)
PRIntn PR_CALLBACK HashComparator (const void *v1, const void *v2)

Variables

static PLHashTableg_NodeLookupTable

Define Documentation

#define CREATE_FROM_DOMNODE (   nsInterface,
  WrapperType,
  errorMsg 
)
Value:
nsCOMPtr<nsInterface> domNode_##nsInterface = do_QueryInterface(pIDOMNode); \
    if (domNode_##nsInterface) \
    { \
        WrapperType *pWrapper = NULL; \
        WrapperType::CreateInstance(&pWrapper); \
        if (!pWrapper) \
        { \
            NS_ASSERTION(0, errorMsg); \
            return E_OUTOFMEMORY; \
        } \
        if (FAILED(pWrapper->QueryInterface(IID_IUnknown, (void**)pNode))) \
            return E_UNEXPECTED; \
        pWrapper->SetDOMNode(pIDOMNode); \
        return S_OK; \
    }

Definition at line 143 of file IEHtmlNode.cpp.

#define SIB_NODE_GET_ELEMENT (   function,
  fn_elt_type 
)
Value:
{ \
    return E_NOTIMPL; \
}
#define SIB_NODE_GET_NUMERIC (   function,
  numtype 
)
Value:
{ \
  if (!p) return E_INVALIDARG; \
  if (!mDOMNode) return E_UNEXPECTED; \
  numtype nData; \
  HRESULT rc = mDOMNode->function(&nData); \
  *p=nData; \
  return rc; \
}

Definition at line 235 of file IEHtmlNode.cpp.

Value:
{ \
  return E_NOTIMPL; \
}

Function Documentation

PRIntn PR_CALLBACK HashComparator ( const void v1,
const void v2 
)

Definition at line 51 of file IEHtmlNode.cpp.

{
    if (v1 == v2)
    {
        return 1;
    }
    return 0;
}

Here is the caller graph for this function:

static PLHashNumber PR_CALLBACK HashFunction ( const void key) [static]

Definition at line 46 of file IEHtmlNode.cpp.

{
    return (PRUint32) key;
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 44 of file IEHtmlNode.cpp.