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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user