fix bug 19358. r=jfrancis . Forece commit when we Undo, SelectAll or Paste

git-svn-id: svn://10.0.0.236/trunk@55817 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ftang%netscape.com 1999-12-09 22:35:17 +00:00
parent c6e18b6ab7
commit 607ad6701a
2 changed files with 4 additions and 0 deletions

View File

@ -446,6 +446,7 @@ nsEditor::Undo(PRUint32 aCount)
{
if (gNoisy) { printf("Editor::Undo ----------\n"); }
nsresult result = NS_OK;
ForceCompositionEnd();
nsAutoRules beginRulesSniffing(this, kOpUndo, nsIEditor::eNone);
@ -632,6 +633,7 @@ nsEditor::EndPlaceHolderTransaction()
NS_IMETHODIMP nsEditor::SelectAll()
{
if (!mDocWeak || !mPresShellWeak) { return NS_ERROR_NOT_INITIALIZED; }
ForceCompositionEnd();
nsCOMPtr<nsIDOMSelection> selection;
if (!mPresShellWeak) return NS_ERROR_NOT_INITIALIZED;

View File

@ -446,6 +446,7 @@ nsEditor::Undo(PRUint32 aCount)
{
if (gNoisy) { printf("Editor::Undo ----------\n"); }
nsresult result = NS_OK;
ForceCompositionEnd();
nsAutoRules beginRulesSniffing(this, kOpUndo, nsIEditor::eNone);
@ -632,6 +633,7 @@ nsEditor::EndPlaceHolderTransaction()
NS_IMETHODIMP nsEditor::SelectAll()
{
if (!mDocWeak || !mPresShellWeak) { return NS_ERROR_NOT_INITIALIZED; }
ForceCompositionEnd();
nsCOMPtr<nsIDOMSelection> selection;
if (!mPresShellWeak) return NS_ERROR_NOT_INITIALIZED;