Logo Search packages:      
Sourcecode: xulrunner version File versions

void nsContentList::DisconnectFromDocument (  )  [protected]

Our root content has been disconnected from the document, so stop observing. From this point on, if someone asks us something we walk the tree rooted at mRootContent starting at the beginning and going as far as we need to to answer the question.

Definition at line 918 of file nsContentList.cpp.

References RemoveFromHashtable(), and SetDirty().

{
  if (mDocument) {
    // Our key will change... Best remove ourselves before that happens.
    RemoveFromHashtable();
    mDocument->RemoveObserver(this);
    mDocument = nsnull;
  }

  // We will get no more updates, so we can never know we're up to
  // date
  SetDirty();
}


Generated by  Doxygen 1.6.0   Back to index