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

Lines Matching defs:container

289 // Checks if |node| is offscreen the visible area (viewport) of its container
306 // If the container has overflow:hidden, we cannot scroll, so we do not pass direction
369 bool scrollInDirection(Node* container, FocusDirection direction)
371 ASSERT(container);
372 if (container->isDocumentNode())
373 return scrollInDirection(toDocument(container)->frame(), direction);
375 if (!container->renderBox())
378 if (canScrollInDirection(container, direction)) {
383 dx = - min<LayoutUnit>(Scrollbar::pixelsPerLineStep(), container->renderBox()->scrollLeft());
386 ASSERT(container->renderBox()->scrollWidth() > (container->renderBox()->scrollLeft() + container->renderBox()->clientWidth()));
387 dx = min<LayoutUnit>(Scrollbar::pixelsPerLineStep(), container->renderBox()->scrollWidth() - (container->renderBox()->scrollLeft() + container->renderBox()->clientWidth()));
390 dy = - min<LayoutUnit>(Scrollbar::pixelsPerLineStep(), container->renderBox()->scrollTop());
393 ASSERT(container->renderBox()->scrollHeight() - (container->renderBox()->scrollTop() + container->renderBox()->clientHeight()));
394 dy = min<LayoutUnit>(Scrollbar::pixelsPerLineStep(), container->renderBox()->scrollHeight() - (container->renderBox()->scrollTop() + container->renderBox()->clientHeight()));
401 container->renderBox()->enclosingLayer()->scrollByRecursively(IntSize(dx, dy));
450 bool canScrollInDirection(const Node* container, FocusDirection direction)
452 ASSERT(container);
453 if (container->isDocumentNode())
454 return canScrollInDirection(toDocument(container)->frame(), direction);
456 if (!isScrollableNode(container))
461 return (container->renderer()->style()->overflowX() != OHIDDEN && container->renderBox()->scrollLeft() > 0);
463 return (container->renderer()->style()->overflowY() != OHIDDEN && container->renderBox()->scrollTop() > 0);
465 return (container->renderer()->style()->overflowX() != OHIDDEN && container->renderBox()->scrollLeft() + container->renderBox()->clientWidth() < container->renderBox()->scrollWidth());
467 return (container->renderer()->style()->overflowY() != OHIDDEN && container->renderBox()->scrollTop() + container->renderBox()->clientHeight() < container->renderBox()->scrollHeight());
699 // The virtual rect is the edge of the container or frame. We select which