Bug 330220 r=annie.sullivan Incorrect behavior when resorting after insertion.
Causes items not to resort, occasional crashes. Original committer: brettw%gmail.com Original revision: 1.60 Original date: 2006/03/13 19:13:31 git-svn-id: svn://10.0.0.236/trunk@202986 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -472,7 +472,7 @@ nsNavHistoryContainerResultNode::ReverseUpdateStats(PRInt32 aAccessCountChange)
|
||||
|
||||
SortComparator comparator = GetSortingComparator(sortMode);
|
||||
int ourIndex = mParent->FindChild(this);
|
||||
if (DoesChildNeedResorting(ourIndex, comparator)) {
|
||||
if (mParent->DoesChildNeedResorting(ourIndex, comparator)) {
|
||||
// prevent us from being destroyed when removed from the parent
|
||||
nsRefPtr<nsNavHistoryContainerResultNode> ourLock = this;
|
||||
nsNavHistoryContainerResultNode* ourParent = mParent;
|
||||
|
||||
Reference in New Issue
Block a user