• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/WebCore-7537.78.1/page/

Lines Matching defs:container

756 void FocusController::findFocusCandidateInContainer(Node* container, const LayoutRect& startingRect, FocusDirection direction, KeyboardEvent* event, FocusCandidate& closest)
758 ASSERT(container);
761 Element* element = ElementTraversal::firstWithin(container);
768 ? ElementTraversal::nextSkippingChildren(element, container)
769 : ElementTraversal::next(element, container)) {
780 candidate.enclosingScrollableBox = container;
785 bool FocusController::advanceFocusDirectionallyInContainer(Node* container, const LayoutRect& startingRect, FocusDirection direction, KeyboardEvent* event)
787 if (!container || !container->document())
793 newStartingRect = virtualRectForDirection(direction, nodeRectInAbsoluteCoordinates(container));
795 // Find the closest node within current container in the direction of the navigation.
797 findFocusCandidateInContainer(container, newStartingRect, direction, event, focusCandidate);
802 // spatial navigation algorithm will skip this container.
803 return scrollInDirection(container, direction);
824 return advanceFocusDirectionallyInContainer(container, nodeRectInAbsoluteCoordinates(focusCandidate.visibleNode, true), direction, event);
834 // Navigate into a new scrollable container.
842 Node* container = focusCandidate.enclosingScrollableBox;
843 scrollInDirection(container, direction);
865 Node* container = focusedDocument;
867 if (container->isDocumentNode())
868 toDocument(container)->updateLayoutIgnorePendingStylesheets();
874 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(direction, focusedElement);
878 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(direction, area->imageElement());
885 consumed = advanceFocusDirectionallyInContainer(container, startingRect, direction, event);
886 startingRect = nodeRectInAbsoluteCoordinates(container, true /* ignore border */);
887 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(direction, container);
888 if (container && container->isDocumentNode())
889 toDocument(container)->updateLayoutIgnorePendingStylesheets();
890 } while (!consumed && container);