Bug 221288 XUL tree builder abuses tree batching r=jan sr=alecf

This commit is contained in:
neil%parkwaycc.co.uk 2003-10-07 15:49:50 +00:00
Родитель eaf1b8f138
Коммит c06f3e743b
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -1350,13 +1350,15 @@ nsXULTreeBuilder::RebuildAll()
if (!doc)
return NS_OK;
if (mBoxObject) {
mBoxObject->BeginUpdateBatch();
}
PRInt32 count = mRows.Count();
mRows.Clear();
mConflictSet.Clear();
if (mBoxObject) {
mBoxObject->BeginUpdateBatch();
mBoxObject->RowCountChanged(0, -count);
}
nsresult rv = CompileRules();
if (NS_FAILED(rv)) return rv;