Updated to conform to new IDL-ized selection interfaces.

git-svn-id: svn://10.0.0.236/trunk@27289 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com
1999-04-13 01:33:32 +00:00
parent 66085f4c30
commit bbda90e2b0
12 changed files with 95 additions and 70 deletions

View File

@@ -249,7 +249,7 @@ nsHTMLEditRules::DidInsertBreak(nsIDOMSelection *aSelection, nsresult aResult)
nsresult result = aResult; // if aResult is an error, we return it.
if (!aSelection) { return NS_ERROR_NULL_POINTER; }
PRBool isCollapsed;
aSelection->IsCollapsed(&isCollapsed);
aSelection->GetIsCollapsed(&isCollapsed);
NS_ASSERTION(PR_TRUE==isCollapsed, "selection not collapsed after insert break.");
// if the insert break resulted in consecutive BR tags,
// collapse the two BR tags into a single P

View File

@@ -352,7 +352,7 @@ nsHTMLEditor::InsertLink(nsString& aURL)
return res;
}
PRBool isCollapsed;
res = selection->IsCollapsed(&isCollapsed);
res = selection->GetIsCollapsed(&isCollapsed);
if (!NS_SUCCEEDED(res))
isCollapsed = PR_TRUE;