Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

NS_IMETHODIMP nsAccessibleTreeWalker::PopState (  )  [protected]

Pop state from stack and makes it current.

Definition at line 122 of file nsAccessibleTreeWalker.cpp.

References ClearState(), and mState.

Referenced by GetFirstChild(), and GetNextSibling().

  nsIFrame *frameParent = mState.frame? mState.frame->GetParent(): nsnull;
  if (mState.prevState) {
    WalkState *toBeDeleted = mState.prevState;
    mState = *mState.prevState; // deep copy
    mState.isHidden = PR_FALSE; // If we were in a child, the parent wasn't hidden
    if (!mState.frame) {
      mState.frame = frameParent;
    delete toBeDeleted;
    return NS_OK;
  mState.frame = frameParent;
  mState.isHidden = PR_FALSE;

Generated by  Doxygen 1.6.0   Back to index