Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
txMozillaXPathTreeWalker.cpp File Reference
#include "txXPathTreeWalker.h"
#include "nsIAtom.h"
#include "nsIAttribute.h"
#include "nsIDOM3Node.h"
#include "nsIDOMAttr.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNode.h"
#include "nsIDOMElement.h"
#include "nsIDOMProcessingInstruction.h"
#include "nsINodeInfo.h"
#include "nsITextContent.h"
#include "nsPrintfCString.h"
#include "nsReadableUtils.h"
#include "nsString.h"
#include "nsTextFragment.h"
#include "XMLUtils.h"
#include "TxLog.h"
#include "nsUnicharUtils.h"

Go to the source code of this file.

Defines

#define kFmtSize   13
#define kFmtSizeAttr   24

Functions

static void appendTextContent (nsIContent *aElement, nsAString &aResult)

Variables

const PRUint32 kUnknownIndex = PRUint32(-1)
const char gPrintfFmt [] = "id0x%08p"
const char gPrintfFmtAttr [] = "id0x%08p-%010i"

Define Documentation

#define kFmtSize   13

Definition at line 671 of file txMozillaXPathTreeWalker.cpp.

#define kFmtSizeAttr   24

Definition at line 672 of file txMozillaXPathTreeWalker.cpp.


Function Documentation

static void appendTextContent ( nsIContent aElement,
nsAString &  aResult 
) [static]

Definition at line 557 of file txMozillaXPathTreeWalker.cpp.

{
    nsIContent* content = aElement->GetChildAt(0);
    PRUint32 i = 0;
    while (content) {
        if (content->IsContentOfType(nsIContent::eELEMENT)) {
            appendTextContent(content, aResult);
        }
        else if (content->IsContentOfType(nsIContent::eTEXT)) {
            nsCOMPtr<nsITextContent> textContent = do_QueryInterface(content);
            textContent->AppendTextTo(aResult);
        }
        content = aElement->GetChildAt(++i);
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const char gPrintfFmt[] = "id0x%08p"

Definition at line 673 of file txMozillaXPathTreeWalker.cpp.

const char gPrintfFmtAttr[] = "id0x%08p-%010i"

Definition at line 674 of file txMozillaXPathTreeWalker.cpp.

Definition at line 58 of file txMozillaXPathTreeWalker.cpp.