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

void nsAttributeTextNode::UnbindFromTree ( PRBool  aDeep = PR_TRUE,
PRBool  aNullParent = PR_TRUE 
) [virtual]

Unbind this content node from a tree. This will set its current document and binding parent to null. In the typical case of a node being removed from a parent, this will be called after it has been removed from the parent's child list and after the nsIDocumentObserver notifications for the removal have been dispatched.

Parameters:
aDeep Whether to recursively unbind the entire subtree rooted at this node. The only time PR_FALSE should be passed is when the parent node of the content is being destroyed.
aNullParent Whether to null out the parent pointer as well. This is usually desirable. This argument should only be false while recursively calling UnbindFromTree when a subtree is detached.
Note:
This method is safe to call on nodes that are not bound to a tree.

Implements nsIContent.

Definition at line 321 of file nsTextNode.cpp.

{
  // Detach as listener while we know who our parent is!
  if (aNullParent) {
    DetachListener();
  }
  nsTextNode::UnbindFromTree(aDeep, aNullParent);
}


Generated by  Doxygen 1.6.0   Back to index