Bug 682611 - Part 2: Remove nsIRange; r=smaug

This commit is contained in:
David Zbarsky
2012-01-10 15:19:54 +01:00
parent b5b429da23
commit c6abd95045
49 changed files with 527 additions and 847 deletions

View File

@@ -2526,10 +2526,7 @@ nsHTMLDocument::DeferredContentEditableCountChange(nsIContent *aElement)
nsCOMPtr<nsIEditor> editor;
editorDocShell->GetEditor(getter_AddRefs(editor));
if (editor) {
nsCOMPtr<nsIDOMRange> range;
rv = NS_NewRange(getter_AddRefs(range));
NS_ENSURE_SUCCESS(rv, );
nsRefPtr<nsRange> range = new nsRange();
rv = range->SelectNode(node);
if (NS_FAILED(rv)) {
// The node might be detached from the document at this point,