Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsXBLContentSink.cpp File Reference
#include "nsXBLContentSink.h"
#include "nsIDocument.h"
#include "nsIBindingManager.h"
#include "nsIDOMNode.h"
#include "nsIParser.h"
#include "nsXBLAtoms.h"
#include "nsINameSpaceManager.h"
#include "nsHTMLAtoms.h"
#include "nsLayoutAtoms.h"
#include "nsHTMLTokens.h"
#include "nsIURI.h"
#include "nsTextFragment.h"
#include "nsXULAtoms.h"
#include "nsXBLProtoImplProperty.h"
#include "nsXBLProtoImplMethod.h"
#include "nsXBLProtoImplField.h"
#include "nsXBLPrototypeBinding.h"
#include "nsContentUtils.h"
#include "nsIConsoleService.h"
#include "nsIScriptError.h"
#include "nsNodeInfoManager.h"
#include "nsINodeInfo.h"
#include "nsIPrincipal.h"

Go to the source code of this file.

Defines

#define ENSURE_XBL_STATE(_cond)

Functions

nsresult NS_NewXBLContentSink (nsIXMLContentSink **aResult, nsIDocument *aDoc, nsIURI *aURI, nsISupports *aContainer)
static PRBool FindValue (const PRUnichar **aAtts, nsIAtom *aAtom, const PRUnichar **aResult)

Define Documentation

#define ENSURE_XBL_STATE (   _cond)
Value:
PR_BEGIN_MACRO                                                                      \
    if (!(_cond)) { ReportUnexpectedElement(aTagName, aLineNumber); return PR_TRUE; } \
  PR_END_MACRO

Definition at line 390 of file nsXBLContentSink.cpp.


Function Documentation

static PRBool FindValue ( const PRUnichar **  aAtts,
nsIAtom aAtom,
const PRUnichar **  aResult 
) [static]

Definition at line 576 of file nsXBLContentSink.cpp.

{
  nsCOMPtr<nsIAtom> prefix, localName;
  for (; *aAtts; aAtts += 2) {
    PRInt32 nameSpaceID;
    nsContentUtils::SplitExpatName(aAtts[0], getter_AddRefs(prefix),
                                   getter_AddRefs(localName), &nameSpaceID);

    // Is this attribute one of the ones we care about?
    if (nameSpaceID == kNameSpaceID_None && localName == aAtom) {
      *aResult = aAtts[1];

      return PR_TRUE;
    }
  }

  return PR_FALSE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewXBLContentSink ( nsIXMLContentSink **  aResult,
nsIDocument aDoc,
nsIURI aURI,
nsISupports *  aContainer 
)

Definition at line 67 of file nsXBLContentSink.cpp.

{
  NS_ENSURE_ARG_POINTER(aResult);

  nsXBLContentSink* it;
  NS_NEWXPCOM(it, nsXBLContentSink);
  NS_ENSURE_TRUE(it, NS_ERROR_OUT_OF_MEMORY);

  nsCOMPtr<nsIXMLContentSink> kungFuDeathGrip = it;
  nsresult rv = it->Init(aDoc, aURI, aContainer);
  NS_ENSURE_SUCCESS(rv, rv);

  return CallQueryInterface(it, aResult);
}

Here is the call graph for this function:

Here is the caller graph for this function: