зеркало из https://github.com/mozilla/pjs.git
Bug 294168 IME transaction of Undo/Redo buffer is broken when selected text is deleted by IME input r=timeless, sr=sfraser, a=chofmann
This commit is contained in:
Родитель
66ee1984e4
Коммит
f19bd02ece
|
@ -198,9 +198,6 @@ NS_IMETHODIMP PlaceholderTxn::Merge(nsITransaction *aTransaction, PRBool *aDidMe
|
|||
(mName.get() == nsEditor::gIMETxnName) ||
|
||||
(mName.get() == nsEditor::gDeleteTxnName))
|
||||
&& !mCommitted )
|
||||
{
|
||||
// but only if this placeholder started with a collapsed selection
|
||||
if (mStartSel->IsCollapsed())
|
||||
{
|
||||
nsCOMPtr<nsIAbsorbingTransaction> plcTxn;// = do_QueryInterface(editTxn);
|
||||
// can't do_QueryInterface() above due to our broken transaction interfaces.
|
||||
|
@ -232,7 +229,6 @@ NS_IMETHODIMP PlaceholderTxn::Merge(nsITransaction *aTransaction, PRBool *aDidMe
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче