mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Revert to earlier version of patch to try to fix orange
This commit is contained in:
parent
15dba1f064
commit
32cfa72536
@ -1059,11 +1059,6 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
||||
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsDocument)
|
||||
// Tear down linkmap. This is a performance optimization so that we
|
||||
// don't waste time removing links one by one as they are removed
|
||||
// from the doc.
|
||||
tmp->DestroyLinkMap();
|
||||
|
||||
// Unlink the mChildren nsAttrAndChildArray.
|
||||
for (PRInt32 indx = PRInt32(tmp->mChildren.ChildCount()) - 1;
|
||||
indx >= 0; --indx) {
|
||||
|
@ -3356,7 +3356,7 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsGenericElement)
|
||||
PRUint32 i;
|
||||
PRUint32 kids = tmp->mAttrsAndChildren.ChildCount();
|
||||
for (i = kids; i > 0; i--) {
|
||||
tmp->mAttrsAndChildren.ChildAt(i-1)->UnbindFromTree(PR_FALSE);
|
||||
tmp->mAttrsAndChildren.ChildAt(i-1)->UnbindFromTree();
|
||||
tmp->mAttrsAndChildren.RemoveChildAt(i-1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user