Bug 429811 - Tag container isn't updated immediately when bookmark is removed (r=mano, a=mconnor)

This commit is contained in:
dietrich@mozilla.com 2008-05-05 12:57:22 -07:00
Родитель 0c12f1b939
Коммит b151718f4d
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -2432,10 +2432,12 @@ nsNavHistoryQueryResultNode::ClearChildren(PRBool aUnregister)
nsresult
nsNavHistoryQueryResultNode::Refresh()
{
// Some query can return other queries, in this case we could call Refresh
// for each child query causing a major slowdown. We should not refresh
// nested queries since we are already refreshing the containining one.
if (mOptions->ResultType() == nsINavHistoryQueryOptions::RESULTS_AS_TAG_CONTENTS)
// Some queries can return other queries. In this case calling Refresh
// for each child query could cause a major slowdown. We should not refresh
// nested queries that are not currently expanded, since we are already
// refreshing the containing one.
if (mOptions->ResultType() == nsINavHistoryQueryOptions::RESULTS_AS_TAG_CONTENTS &&
!mExpanded)
return NS_OK;
// Ignore refreshes when there is a batch, EndUpdateBatch will do a refresh