зеркало из https://github.com/mozilla/gecko-dev.git
Bug 471301 - nsNSSASN1Tree::LoadASN1Structure is missing calls to BeginUpdateBatch/EndUpdateBatch. r=kaie
This commit is contained in:
Родитель
7626b3040a
Коммит
bf6c9b1c41
|
@ -170,10 +170,12 @@ nsNSSASN1Tree::LoadASN1Structure(nsIASN1Object *asn1Object)
|
|||
if (redraw) {
|
||||
// The number of rows in the new content.
|
||||
PRInt32 newRows = CountVisibleNodes(mTopNode);
|
||||
mTree->BeginUpdateBatch();
|
||||
// Erase all of the old rows.
|
||||
mTree->RowCountChanged(0, rowsToDelete);
|
||||
// Replace them with the new contents
|
||||
mTree->RowCountChanged(0, newRows);
|
||||
mTree->EndUpdateBatch();
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче