Home | History | Annotate | Download | only in page

Lines Matching refs:scope

468 Node* FocusController::findFocusableNodeAcrossFocusScope(FocusType type, FocusNavigationScope scope, Node* currentNode)
474 found = foundInInnerFocusScope ? foundInInnerFocusScope : findFocusableNodeRecursively(type, scope, currentNode);
476 found = findFocusableNodeRecursively(type, scope, currentNode);
481 Node* owner = scope.owner();
484 scope = FocusNavigationScope::focusNavigationScopeOf(owner);
489 found = findFocusableNodeRecursively(type, scope, owner);
495 Node* FocusController::findFocusableNodeRecursively(FocusType type, FocusNavigationScope scope, Node* start)
498 Node* found = findFocusableNode(type, scope, start);
505 return foundInInnerFocusScope ? foundInInnerFocusScope : findFocusableNodeRecursively(type, scope, found);
514 return foundInInnerFocusScope ? foundInInnerFocusScope :findFocusableNodeRecursively(type, scope, found);
519 Node* FocusController::findFocusableNode(FocusType type, FocusNavigationScope scope, Node* node)
521 return type == FocusTypeForward ? nextFocusableNode(scope, node) : previousFocusableNode(scope, node);
564 Node* FocusController::nextFocusableNode(FocusNavigationScope scope, Node* start)
576 // First try to find a node with the same tabindex as start that comes after start in the scope.
585 // Look for the first node in the scope that:
587 // 2) comes first in the scope, if there's a tie.
588 if (Node* winner = nextNodeWithGreaterTabIndex(scope.rootNode(), start ? adjustedTabIndex(start) : 0))
593 return findNodeWithExactTabIndex(scope.rootNode(), 0, FocusTypeForward);
596 Node* FocusController::previousFocusableNode(FocusNavigationScope scope, Node* start)
599 for (Node* node = scope.rootNode(); node; node = node->lastChild())
603 // First try to find the last node in the scope that comes before start and has the same tabindex as start.
604 // If start is null, find the last node in the scope with a tabindex of 0.
628 // 2) comes last in the scope, if there's a tie.