Bug 1048752. Part 17: Rename Get/SetCaretDOMSelection to Get/SetSelection. r=tn

The forward declaration of Selection in nsCaret.h will be used in later patches.
This commit is contained in:
Robert O'Callahan
2014-08-06 17:19:27 +12:00
parent 6fb18233c7
commit bed9de9439
12 changed files with 25 additions and 21 deletions

View File

@@ -692,7 +692,7 @@ TextOverflow::CanHaveTextOverflow(nsDisplayListBuilder* aBuilder,
nsRefPtr<nsCaret> caret = aBlockFrame->PresContext()->PresShell()->GetCaret();
bool visible = false;
if (caret && NS_SUCCEEDED(caret->GetCaretVisible(&visible)) && visible) {
nsCOMPtr<nsISelection> domSelection = caret->GetCaretDOMSelection();
nsCOMPtr<nsISelection> domSelection = caret->GetSelection();
if (domSelection) {
nsCOMPtr<nsIDOMNode> node;
domSelection->GetFocusNode(getter_AddRefs(node));