Bug 324856, r=bryner Send notifications for RemoveFolderChildren, update bugs.

Original committer: brettw%gmail.com
Original revision: 1.36
Original date: 2006/01/27 00:36:16
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 18:21:22 +00:00
Родитель 3002b1d261
Коммит 531579e277
1 изменённых файлов: 7 добавлений и 2 удалений

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

@ -1120,8 +1120,13 @@ nsNavHistoryContainerResultNode::RemoveChildAt(PRInt32 aIndex,
if (AreChildrenVisible() && childVisibleIndex >= 0) if (AreChildrenVisible() && childVisibleIndex >= 0)
result->RowsRemoved(childVisibleIndex, visibleRows); result->RowsRemoved(childVisibleIndex, visibleRows);
if (! aIsTemporary) if (! aIsTemporary) {
ReverseUpdateStats(mAccessCount - oldAccessCount); ReverseUpdateStats(mAccessCount - oldAccessCount);
// update our row (the twisty might have changed)
if (mVisibleIndex >= 0)
result->RowChanged(mVisibleIndex);
}
return NS_OK; return NS_OK;
} }
@ -4329,7 +4334,7 @@ nsNavHistoryResult::RowsRemoved(PRInt32 aVisibleIndex, PRUint32 aCount)
NS_NOTREACHED("RowsRemoved should only be called when there is a tree"); NS_NOTREACHED("RowsRemoved should only be called when there is a tree");
return; return;
} }
if (aVisibleIndex < 0 || aVisibleIndex + aCount >= if (aVisibleIndex < 0 || aVisibleIndex + aCount >
mVisibleElements.Length()) { mVisibleElements.Length()) {
NS_NOTREACHED("Trying to remove invalid row"); NS_NOTREACHED("Trying to remove invalid row");
return; return;