Bug 1011391 - Clear rule cascades in nsCSSStyleSheet's Unlink. r=bz

This commit is contained in:
Andrew McCreight 2014-06-18 15:33:30 -07:00
parent 45ab6ecac4
commit 7df9e4e10a

View File

@ -1149,6 +1149,7 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsCSSStyleSheet)
tmp->DropRuleCollection(); tmp->DropRuleCollection();
tmp->UnlinkInner(); tmp->UnlinkInner();
tmp->mScopeElement = nullptr; tmp->mScopeElement = nullptr;
tmp->ClearRuleCascades();
NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER
NS_IMPL_CYCLE_COLLECTION_UNLINK_END NS_IMPL_CYCLE_COLLECTION_UNLINK_END
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsCSSStyleSheet) NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsCSSStyleSheet)