adding batch changes around editor BeginTransaction. bug 4593

This commit is contained in:
mjudge%netscape.com 1999-04-08 01:28:33 +00:00
Родитель 9a83dd0a53
Коммит 0f03b6a5f0
2 изменённых файлов: 20 добавлений и 0 удалений

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

@ -766,6 +766,11 @@ nsEditor::BeginTransaction()
{
mTxnMgr->BeginBatch();
}
nsCOMPtr<nsIDOMSelection>selection;
nsresult selectionResult = GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(selectionResult) && selection) {
selection->StartBatchChanges();
}
return NS_OK;
}
@ -783,6 +788,11 @@ nsEditor::EndTransaction()
{
mTxnMgr->EndBatch();
}
nsCOMPtr<nsIDOMSelection>selection;
nsresult selectionResult = GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(selectionResult) && selection) {
selection->EndBatchChanges();
}
return NS_OK;
}

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

@ -766,6 +766,11 @@ nsEditor::BeginTransaction()
{
mTxnMgr->BeginBatch();
}
nsCOMPtr<nsIDOMSelection>selection;
nsresult selectionResult = GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(selectionResult) && selection) {
selection->StartBatchChanges();
}
return NS_OK;
}
@ -783,6 +788,11 @@ nsEditor::EndTransaction()
{
mTxnMgr->EndBatch();
}
nsCOMPtr<nsIDOMSelection>selection;
nsresult selectionResult = GetSelection(getter_AddRefs(selection));
if (NS_SUCCEEDED(selectionResult) && selection) {
selection->EndBatchChanges();
}
return NS_OK;
}