mOldChildCount = newCount; mDocument->ContentAppended(mParent, notifySlot);
mChildrenBound = 0; mOldChildCount = boundCount; if (boundCount == mParent->GetChildCount()) {  mDocument->ContentAppended(mParent, notifySlot); } else {  for (PRUint32 i = notifySlot; i < boundCount; ++i) { nsIContent* child = mParent->GetChildAt(i);   if (child) { mDocument->ContentInserted(mParent, child, i); } } }
  void Notify() {    if (mDocument && mDocument == mParent->GetCurrentDoc()) {      PRInt32 newCount = mParent->GetChildCount();      if (newCount > mOldChildCount) {        PRUint32 notifySlot = mOldChildCount;        // Make sure to update mOldChildCount so that if ContentAppended calls        // BeginUpdate for some reason (eg XBL) so we reenter Notify() we won't        // double-notify.        mOldChildCount = newCount;        mDocument->ContentAppended(mParent, notifySlot);      }    }  }