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:
parent
c6e18b6ab7
commit
607ad6701a
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user