зеркало из https://github.com/mozilla/gecko-dev.git
Make sure to scroll and such _before_ firing events. Bug 264873, r=mats,
sr=bryner
This commit is contained in:
Родитель
b5c3568bed
Коммит
9866f848c5
|
@ -3219,12 +3219,13 @@ nsEventStateManager::ShiftFocusInternal(PRBool aForward, nsIContent* aStart)
|
|||
}
|
||||
|
||||
if (sub_shell) {
|
||||
SetContentState(nsnull, NS_EVENT_STATE_FOCUS);
|
||||
|
||||
// Make sure to scroll before possibly dispatching focus/blur events.
|
||||
presShell->ScrollFrameIntoView(nextFocusFrame,
|
||||
NS_PRESSHELL_SCROLL_ANYWHERE,
|
||||
NS_PRESSHELL_SCROLL_ANYWHERE);
|
||||
|
||||
SetContentState(nsnull, NS_EVENT_STATE_FOCUS);
|
||||
|
||||
// if we are in the middle of tabbing into
|
||||
// sub_shell, bail out, to avoid recursion
|
||||
// see bug #195011 and bug #137191
|
||||
|
|
Загрузка…
Ссылка в новой задаче