diff --git a/dom/base/nsFocusManager.h b/dom/base/nsFocusManager.h index c2e8fb3ecd38..984d697333af 100644 --- a/dom/base/nsFocusManager.h +++ b/dom/base/nsFocusManager.h @@ -150,6 +150,23 @@ class nsFocusManager final : public nsIFocusManager, nsPIDOMWindowOuter* aWindow, SearchRange aSearchRange, nsPIDOMWindowOuter** aFocusedWindow); + /** + * Helper function for MoveFocus which determines the next element + * to move the focus to and returns it in aNextContent. + * + * aWindow is the window to adjust the focus within, and aStart is + * the element to start navigation from. For tab key navigation, + * this should be the currently focused element. + * + * aType is the type passed to MoveFocus. If aNoParentTraversal is set, + * navigation is not done to parent documents and iteration returns to the + * beginning (or end) of the starting document. + */ + nsresult DetermineElementToMoveFocus(nsPIDOMWindowOuter* aWindow, + nsIContent* aStart, int32_t aType, + bool aNoParentTraversal, + nsIContent** aNextContent); + /** * Returns the content node that focus will be redirected to if aContent was * focused. This is used for the special case of certain XUL elements such @@ -403,23 +420,6 @@ class nsFocusManager final : public nsIFocusManager, nsIContent** aStartContent, nsIContent** aEndContent); - /** - * Helper function for MoveFocus which determines the next element - * to move the focus to and returns it in aNextContent. - * - * aWindow is the window to adjust the focus within, and aStart is - * the element to start navigation from. For tab key navigation, - * this should be the currently focused element. - * - * aType is the type passed to MoveFocus. If aNoParentTraversal is set, - * navigation is not done to parent documents and iteration returns to the - * beginning (or end) of the starting document. - */ - nsresult DetermineElementToMoveFocus(nsPIDOMWindowOuter* aWindow, - nsIContent* aStart, int32_t aType, - bool aNoParentTraversal, - nsIContent** aNextContent); - /** * Retrieve the next tabbable element in scope owned by aOwner, using * focusability and tabindex to determine the tab order.