caret method renamed to GetCaretCoordinates; r=kin; sr=sfraser

git-svn-id: svn://10.0.0.236/trunk@86233 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brade%netscape.com
2001-02-05 15:44:38 +00:00
parent 3440aa2597
commit 644f57503b
6 changed files with 18 additions and 10 deletions

View File

@@ -1620,7 +1620,9 @@ nsPlaintextEditor::SetCompositionString(const nsString& aCompositionString, nsIP
nsCOMPtr<nsIPresShell> ps = do_QueryReferent(mPresShellWeak);
if (!ps) return NS_ERROR_NOT_INITIALIZED;
ps->GetCaret(getter_AddRefs(caretP));
caretP->GetWindowRelativeCoordinates(aReply->mCursorPosition,aReply->mCursorIsCollapsed,selection);
caretP->SetCaretDOMSelection(selection);
caretP->GetCaretCoordinates(nsICaret::eTopLevelWindowCoordinates, selection,
&(aReply->mCursorPosition), &(aReply->mCursorIsCollapsed));
// second part of 23558 fix:
if (aCompositionString.IsEmpty())