mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
Bug 1288228 part 2: When a DOMSVGLength is CC'd, remove it from tearoff table and drop its weak ref to wrapped val.
This commit is contained in:
@@ -32,10 +32,8 @@ static nsSVGAttrTearoffTable<nsSVGLength2, DOMSVGLength>
|
||||
NS_IMPL_CYCLE_COLLECTION_CLASS(DOMSVGLength)
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(DOMSVGLength)
|
||||
// We may not belong to a list, so we must null check tmp->mList.
|
||||
if (tmp->mList) {
|
||||
tmp->mList->mItems[tmp->mListIndex] = nullptr;
|
||||
}
|
||||
tmp->CleanupWeakRefs();
|
||||
tmp->mVal = nullptr; // (owned by mSVGElement, which we drop our ref to here)
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK(mList)
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK(mSVGElement)
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER
|
||||
|
||||
Reference in New Issue
Block a user