mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
Bug 330220 r=annie.sullivan Incorrect behavior when resorting after insertion.
Causes items not to resort, occasional crashes.
This commit is contained in:
parent
1216181f00
commit
47430fafa3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user