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

Lines Matching defs:box

289                 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) {
290 while (InlineBox* childBox = box->firstChild())
462 // column span box holding column span children.
490 // The goal is to locate a suitable box in which to place our child.
508 // See if the child can be placed in the box.
541 // Create a new anonymous box of the appropriate type.
609 // to clear our line box tree.
824 // Insert the child into the anonymous block box instead of here.
883 // We have to perform a split of this block's children. This involves creating an anonymous block box to hold
908 // it is put into an anomyous block box. We try to use an existing anonymous box if possible, otherwise
918 // No suitable existing anonymous box - create a new one.
1277 // box. We can go ahead and pull the content right back up into our
1278 // box.
1746 // Don't allow this rect to spill out of our overflow box.
1807 // Add visual overflow from box-shadow and border-image-outset.
1926 // http://www.hixie.ch/tests/adhoc/css/box/block/margin-collapse/046.html for
1939 // Delete our line box tree. This is needed as our children got moved
1940 // and our line box tree is no longer valid.
2253 // Move the top of the child box to the bottom of the float ignoring the child's top margin.
2286 // Give up if in quirks mode and we're a body/table cell and the top margin of the child box is quirky.
2322 // Give up if there is clearance on the box, since it probably won't collapse into us.
2326 // Make sure to update the block margins now for the grandchild box so that we're looking at current values.
2336 // Collapse the margin of the grandchild box with our own to produce an estimate.
2512 // If relayoutChildren is set and the child has percentage padding or an embedded content box, we also need to invalidate the childs pref widths.
2528 RenderBox* box = *it;
2529 while (box != this) {
2530 if (box->normalChildNeedsLayout())
2532 box->setChildNeedsLayout(true, MarkOnlyThis);
2537 if (box->hasAspectRatio())
2538 box->setPreferredLogicalWidthsDirty(true);
2540 box = box->containingBlock();
2541 ASSERT(box);
2542 if (!box)
2756 RootInlineBox* box = toRenderBox(o)->inlineBoxWrapper()->root();
2757 lineBoxes.add(box);
2766 RootInlineBox* box = *it;
2767 box->computeOverflow(box->lineTop(), box->lineBottom(), textBoxDataMap);
2770 for (RenderBox* box = firstChildBox(); box; box = box->nextSiblingBox()) {
2771 if (!box->isOutOfFlowPositioned())
2772 box->layoutIfNeeded();
2836 RenderBox* box = toRenderBox(child);
2839 box->computeLogicalWidthInRegion(computedValues);
2841 if (newLeft != box->logicalLeft())
2844 LayoutUnit oldTop = box->logicalTop();
2845 box->updateLogicalHeight();
2846 if (box->logicalTop() != oldTop)
2881 // If relayoutChildren is set and the child has percentage padding or an embedded content box, we also need to invalidate the childs pref widths.
3318 for (RenderBoxModelObject* box = inlineRenderer; box != cb; box = box->parent()->enclosingBoxModelObject()) {
3319 if (box->hasSelfPaintingLayer()) {
3582 // Note that we don't clip out overflow for positioned objects. We just stick to the border box.
3605 // FIXME: overflow: auto/scroll regions need more math here, since painting in the border box is different from painting in the padding box (one is scrolled, the other is
4142 // The segment offsets are relative to the content box.
4378 RenderBox* box = toRenderBox(curr);
4379 if (!hasPercentHeightDescendant(box))
4382 removePercentHeightDescendant(box);
4906 // Floats can't intrude into our box if we have a non-auto column count or width.
5258 Position RenderBlock::positionForBox(InlineBox *box, bool start) const
5260 if (!box)
5263 if (!box->renderer()->nonPseudoNode())
5266 if (!box->isInlineTextBox())
5267 return createLegacyEditingPosition(box->renderer()->nonPseudoNode(), start ? box->renderer()->caretMinOffset() : box->renderer()->caretMaxOffset());
5269 InlineTextBox* textBox = toInlineTextBox(box);
5270 return createLegacyEditingPosition(box->renderer()->nonPseudoNode(), start ? textBox->start() : textBox->start() + textBox->len());
5326 // look for the closest line box in the root box which is at the passed-in y coordinate
5342 // check if this root line box is located at this y coordinate
5362 // y coordinate is below last root line box, pretend we hit it
5371 InlineBox* box = firstRootBoxWithChildren->firstLeafChild();
5372 if (box->isLineBreak()) {
5373 if (InlineBox* newBox = box->nextLeafChildIgnoringLineBreak())
5374 box = newBox;
5376 // y coordinate is above first root line box, so return the start of the first
5377 return VisiblePosition(positionForBox(box, true), DOWNSTREAM);
5381 // pass the box a top position that is inside it
5391 // We hit this case for Mac behavior when the Y coordinate is below the last box.
5398 // Can't reach this. We have a root line box, but it has no kids.
5404 static inline bool isChildHitTestCandidate(RenderBox* box)
5406 return box->height() && box->style()->visibility() == VISIBLE && !box->isFloatingOrOutOfFlowPositioned();
5448 // We hit child if our click is above the bottom of its padding box (like IE6/7 and FF3).
6515 // box, then the fact that we're an inline-block is irrelevant, and we behave
6536 // box, then the fact that we're an inline-block is irrelevant, and we behave
6546 // CSS2.1 states that the baseline of an inline block is the baseline of the last line box in
6551 // of our content box.
6636 for (InlineBox* box = root->firstLeafChild(); box; box = box->nextLeafChild()) {
6637 if (box->bidiLevel())
6654 // implemented using flex box but should still support first-line. The
6655 // flex box spec requires that flex box does not support first-line,
6706 // implemented using flex box but should still support first-letter.
6707 // The flex box spec requires that flex box does not support
6913 for (RootInlineBox* box = block->firstRootBox(); box; box = box->nextRootBox()) {
6915 return box->lineBottom() + (includeBottom ? (block->borderBottom() + block->paddingBottom()) : LayoutUnit());
6944 for (RootInlineBox* box = firstRootBox(); box; box = box->nextRootBox())
6946 return box;
6951 if (RootInlineBox* box = toRenderBlock(child)->lineAtIndex(i))
6952 return box;
6965 for (RootInlineBox* box = firstRootBox(); box; box = box->nextRootBox()) {
6967 if (box == stopRootInlineBox) {
7000 for (RootInlineBox* box = firstRootBox(); box; box = box->nextRootBox()) {
7001 if (box->firstChild())
7002 left = min(left, x + static_cast<LayoutUnit>(box->firstChild()->x()));
7003 if (box->lastChild())
7004 right = max(right, x + static_cast<LayoutUnit>(ceilf(box->lastChild()->logicalRight())));
7069 for (RootInlineBox* box = firstRootBox(); box; box = box->nextRootBox())
7070 box->clearTruncation();
7356 RenderBox* box = toRenderBox(curr);
7359 if (box->layer())
7362 pos = FloatPoint(additionalOffset.x() + box->x(), additionalOffset.y() + box->y());
7363 box->addFocusRingRects(rects, flooredLayoutPoint(pos));
7821 // logical top or logical bottom of the block to size as though the border box in the first and
7849 // "logical left/right" sides of the child box. We can just return the raw margin in this case.
7866 // "logical left/right" side of the child box. We can just return the raw margin in this case.
7882 // The child is perpendicular to us and box sides are never quirky in html.css, and we don't really care about
7899 // The child is perpendicular to us and box sides are never quirky in html.css, and we don't really care about
7942 // "logical left/right" sides of the child box. We can just return the raw margin in this case.