if (nsnull != mTableTbodyRule) { mTableTbodyRule->mSheet = nsnull; NS_RELEASE(mTableTbodyRule); } if (nsnull != mTableRowRule) { mTableRowRule->mSheet = nsnull; NS_RELEASE(mTableRowRule); } if (nsnull != mTableColgroupRule) { mTableColgroupRule->mSheet = nsnull; NS_RELEASE(mTableColgroupRule); } if (nsnull != mTableColRule) { mTableColRule->mSheet = nsnull; NS_RELEASE(mTableColRule); }
HTMLStyleSheetImpl::~HTMLStyleSheetImpl(){  NS_IF_RELEASE(mURL);  if (nsnull != mLinkRule) {    mLinkRule->mSheet = nsnull;    NS_RELEASE(mLinkRule);  }  if (nsnull != mVisitedRule) {    mVisitedRule->mSheet = nsnull;    NS_RELEASE(mVisitedRule);  }  if (nsnull != mActiveRule) {    mActiveRule->mSheet = nsnull;    NS_RELEASE(mActiveRule);  }  if (nsnull != mDocumentColorRule) {    mDocumentColorRule->mSheet = nsnull;    NS_RELEASE(mDocumentColorRule);  }  if (nsnull != mTableTHRule) {    mTableTHRule->mSheet = nsnull;    NS_RELEASE(mTableTHRule);  }  mMappedAttrTable.Enumerate(MappedDropSheet);}