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