зеркало из https://github.com/mozilla/pjs.git
cleanups
This commit is contained in:
Родитель
3120ce29b5
Коммит
6902a54fc2
|
@ -656,6 +656,8 @@ PRInt32 HTMLStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext,
|
|||
matchCount++;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
NS_RELEASE(htmlContent);
|
||||
|
@ -875,6 +877,16 @@ NS_IMETHODIMP HTMLStyleSheetImpl::Reset(nsIURI* aURL)
|
|||
mActiveRule->mSheet = nsnull;
|
||||
NS_RELEASE(mActiveRule);
|
||||
}
|
||||
if (mDocumentColorRule) {
|
||||
mDocumentColorRule->mSheet = nsnull;
|
||||
NS_RELEASE(mDocumentColorRule);
|
||||
}
|
||||
if (mTableBackgroundRule) {
|
||||
mTableBackgroundRule->mSheet = nsnull;
|
||||
NS_RELEASE(mTableBackgroundRule);
|
||||
}
|
||||
|
||||
mMappedAttrTable.Enumerate(MappedDropSheet);
|
||||
mMappedAttrTable.Reset();
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -656,6 +656,8 @@ PRInt32 HTMLStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext,
|
|||
matchCount++;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
NS_RELEASE(htmlContent);
|
||||
|
@ -875,6 +877,16 @@ NS_IMETHODIMP HTMLStyleSheetImpl::Reset(nsIURI* aURL)
|
|||
mActiveRule->mSheet = nsnull;
|
||||
NS_RELEASE(mActiveRule);
|
||||
}
|
||||
if (mDocumentColorRule) {
|
||||
mDocumentColorRule->mSheet = nsnull;
|
||||
NS_RELEASE(mDocumentColorRule);
|
||||
}
|
||||
if (mTableBackgroundRule) {
|
||||
mTableBackgroundRule->mSheet = nsnull;
|
||||
NS_RELEASE(mTableBackgroundRule);
|
||||
}
|
||||
|
||||
mMappedAttrTable.Enumerate(MappedDropSheet);
|
||||
mMappedAttrTable.Reset();
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -656,6 +656,8 @@ PRInt32 HTMLStyleSheetImpl::RulesMatching(nsIPresContext* aPresContext,
|
|||
matchCount++;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
NS_RELEASE(htmlContent);
|
||||
|
@ -875,6 +877,16 @@ NS_IMETHODIMP HTMLStyleSheetImpl::Reset(nsIURI* aURL)
|
|||
mActiveRule->mSheet = nsnull;
|
||||
NS_RELEASE(mActiveRule);
|
||||
}
|
||||
if (mDocumentColorRule) {
|
||||
mDocumentColorRule->mSheet = nsnull;
|
||||
NS_RELEASE(mDocumentColorRule);
|
||||
}
|
||||
if (mTableBackgroundRule) {
|
||||
mTableBackgroundRule->mSheet = nsnull;
|
||||
NS_RELEASE(mTableBackgroundRule);
|
||||
}
|
||||
|
||||
mMappedAttrTable.Enumerate(MappedDropSheet);
|
||||
mMappedAttrTable.Reset();
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче