Logo Search packages:      
Sourcecode: xulrunner version File versions

void nsContentList::RemoveFromHashtable (  )  [protected]

Remove ourselves from the hashtable that caches commonly accessed content lists. Generally done on destruction.

Definition at line 933 of file nsContentList.cpp.

References mFunc.

Referenced by DisconnectFromDocument().

{
  if (mFunc) {
    // This can't be in the table anyway
    return;
  }
  
  if (!gContentListHashTable.ops)
    return;

  PL_DHashTableOperate(&gContentListHashTable,
                       GetKey(),
                       PL_DHASH_REMOVE);

  if (gContentListHashTable.entryCount == 0) {
    PL_DHashTableFinish(&gContentListHashTable);
    gContentListHashTable.ops = nsnull;
  }
}


Generated by  Doxygen 1.6.0   Back to index