Backing out these changes since they were strictly unnecessary and they cause other problems.

git-svn-id: svn://10.0.0.236/trunk@195603 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mrbkap%gmail.com 2006-04-27 22:34:07 +00:00
parent 1501982476
commit ac9774e0bc

View File

@ -4412,9 +4412,20 @@ nsresult nsEditor::EndUpdateViewBatch()
if (0 == mUpdateCount)
{
// Hide the caret with an StCaretHider. By the time it goes out
// of scope and tries to show the caret, reflow and selection changed
// notifications should've happened so the caret should have enough info
// to draw at the correct position.
nsCOMPtr<nsICaret> caret;
nsCOMPtr<nsIPresShell> presShell;
GetPresShell(getter_AddRefs(presShell));
if (presShell)
presShell->GetCaret(getter_AddRefs(caret));
StCaretHider caretHider(caret);
PRUint32 flags = 0;
GetFlags(&flags);