зеркало из https://github.com/mozilla/gecko-dev.git
MoveFocusToCaret() could cause the selection frame to be destroyed, so ask for it again. b=308086 r=aaronleventhal sr=bryner
This commit is contained in:
Родитель
b837c9d737
Коммит
bbaa13ef0a
|
@ -3231,6 +3231,11 @@ nsEventStateManager::ShiftFocusInternal(PRBool aForward, nsIContent* aStart)
|
||||||
PRBool selectionWithFocus;
|
PRBool selectionWithFocus;
|
||||||
MoveFocusToCaret(PR_FALSE, &selectionWithFocus);
|
MoveFocusToCaret(PR_FALSE, &selectionWithFocus);
|
||||||
ignoreTabIndex = !selectionWithFocus;
|
ignoreTabIndex = !selectionWithFocus;
|
||||||
|
// Refresh |selectionFrame| since MoveFocusToCaret() could have
|
||||||
|
// destroyed it. (bug 308086)
|
||||||
|
GetDocSelectionLocation(getter_AddRefs(selectionContent),
|
||||||
|
getter_AddRefs(endSelectionContent),
|
||||||
|
&selectionFrame, &selectionOffset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче