Back to index

lightning-sunbird  0.9+nobinonly
Classes | Public Member Functions | Protected Attributes
XULContentSinkImpl::ContextStack Class Reference
Collaboration diagram for XULContentSinkImpl::ContextStack:
Collaboration graph
[legend]

List of all members.

Classes

struct  Entry

Public Member Functions

 ContextStack ()
 ~ContextStack ()
PRInt32 Depth ()
nsresult Push (nsXULPrototypeNode *aNode, State aState)
nsresult Pop (State *aState)
nsresult GetTopNode (nsXULPrototypeNode **aNode)
nsresult GetTopChildren (nsVoidArray **aChildren)

Protected Attributes

EntrymTop
PRInt32 mDepth

Detailed Description

Definition at line 200 of file nsXULContentSink.cpp.


Class Documentation

struct XULContentSinkImpl::ContextStack::Entry

Definition at line 202 of file nsXULContentSink.cpp.

Collaboration diagram for XULContentSinkImpl::ContextStack::Entry:
Class Members
nsAutoVoidArray mChildren
Entry * mNext
nsXULPrototypeNode * mNode
State mState

Constructor & Destructor Documentation

Definition at line 246 of file nsXULContentSink.cpp.

    : mTop(nsnull), mDepth(0)
{
}

Definition at line 251 of file nsXULContentSink.cpp.

{
    while (mTop) {
        Entry* doomed = mTop;
        mTop = mTop->mNext;
        delete doomed;
    }
}

Member Function Documentation

Definition at line 217 of file nsXULContentSink.cpp.

{ return mDepth; }

Here is the caller graph for this function:

Definition at line 305 of file nsXULContentSink.cpp.

{
    if (mDepth == 0)
        return NS_ERROR_UNEXPECTED;

    *aChildren = &(mTop->mChildren);
    return NS_OK;
}

Here is the caller graph for this function:

Definition at line 294 of file nsXULContentSink.cpp.

{
    if (mDepth == 0)
        return NS_ERROR_UNEXPECTED;

    *aNode = mTop->mNode;
    return NS_OK;
}

Here is the caller graph for this function:

Definition at line 277 of file nsXULContentSink.cpp.

{
    if (mDepth == 0)
        return NS_ERROR_UNEXPECTED;

    Entry* entry = mTop;
    mTop = mTop->mNext;
    --mDepth;

    *aState = entry->mState;
    delete entry;

    return NS_OK;
}

Here is the caller graph for this function:

Definition at line 261 of file nsXULContentSink.cpp.

{
    Entry* entry = new Entry;
    if (! entry)
        return NS_ERROR_OUT_OF_MEMORY;

    entry->mNode  = aNode;
    entry->mState = aState;
    entry->mNext  = mTop;
    mTop = entry;

    ++mDepth;
    return NS_OK;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 211 of file nsXULContentSink.cpp.

Definition at line 210 of file nsXULContentSink.cpp.


The documentation for this class was generated from the following file: