зеркало из https://github.com/mozilla/pjs.git
Bug 429811 - Tag container isn't updated immediately when bookmark is removed (r=mano, a=mconnor)
This commit is contained in:
Родитель
e5830e039d
Коммит
52fe412ed1
|
@ -2432,10 +2432,12 @@ nsNavHistoryQueryResultNode::ClearChildren(PRBool aUnregister)
|
||||||
nsresult
|
nsresult
|
||||||
nsNavHistoryQueryResultNode::Refresh()
|
nsNavHistoryQueryResultNode::Refresh()
|
||||||
{
|
{
|
||||||
// Some query can return other queries, in this case we could call Refresh
|
// Some queries can return other queries. In this case calling Refresh
|
||||||
// for each child query causing a major slowdown. We should not refresh
|
// for each child query could cause a major slowdown. We should not refresh
|
||||||
// nested queries since we are already refreshing the containining one.
|
// nested queries that are not currently expanded, since we are already
|
||||||
if (mOptions->ResultType() == nsINavHistoryQueryOptions::RESULTS_AS_TAG_CONTENTS)
|
// refreshing the containing one.
|
||||||
|
if (mOptions->ResultType() == nsINavHistoryQueryOptions::RESULTS_AS_TAG_CONTENTS &&
|
||||||
|
!mExpanded)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
||||||
// Ignore refreshes when there is a batch, EndUpdateBatch will do a refresh
|
// Ignore refreshes when there is a batch, EndUpdateBatch will do a refresh
|
||||||
|
|
Загрузка…
Ссылка в новой задаче