mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Backing out these changes since they were strictly unnecessary and they cause other problems.
This commit is contained in:
parent
d2de6ec49f
commit
f03e3f47ba
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user