зеркало из https://github.com/mozilla/pjs.git
Bug 473157 Sorting shouldn't affect grouping containers, only uris r=dietrich
This commit is contained in:
Родитель
8e29c423c2
Коммит
37be33e693
|
@ -2552,6 +2552,21 @@ nsNavHistoryQueryResultNode::GetSortingAnnotation(nsACString& aAnnotation) {
|
|||
else
|
||||
NS_NOTREACHED("We should always have a result");
|
||||
}
|
||||
|
||||
void
|
||||
nsNavHistoryQueryResultNode::RecursiveSort(
|
||||
const char* aData, SortComparator aComparator)
|
||||
{
|
||||
void* data = const_cast<void*>(static_cast<const void*>(aData));
|
||||
|
||||
if (!IsContainersQuery())
|
||||
mChildren.Sort(aComparator, data);
|
||||
else
|
||||
for (PRInt32 i = 0; i < mChildren.Count(); i ++)
|
||||
mChildren[i]->GetAsContainer()->RecursiveSort(aData, aComparator);
|
||||
}
|
||||
|
||||
|
||||
// nsNavHistoryResultNode::OnBeginUpdateBatch
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -740,6 +740,8 @@ public:
|
|||
|
||||
virtual PRUint16 GetSortType();
|
||||
virtual void GetSortingAnnotation(nsACString& aSortingAnnotation);
|
||||
virtual void RecursiveSort(const char* aData,
|
||||
SortComparator aComparator);
|
||||
};
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче