Home | History | Annotate | Download | only in rendering

Lines Matching defs:border

119         // Column widths specified on <col> apply to the border box of the cell.
337 // The following rules apply for resolving conflicts and figuring out which border
339 // (1) Borders with the 'border-style' of 'hidden' take precedence over all other conflicting
340 // borders. Any border with this value suppresses all borders at this location.
341 // (2) Borders with a style of 'none' have the lowest priority. Only if the border properties of all
342 // the elements meeting at this edge are 'none' will the border be omitted (but note that 'none' is
343 // the default value for the border style.)
345 // are discarded in favor of wider ones. If several have the same 'border-width' then styles are preferred
347 // (4) If border styles differ only in color, then a style set on a cell wins over one on a row,
352 // Sanity check the values passed in. The null border have lowest priority.
370 // Rule #2 above. A style of 'none' has lowest priority and always loses to any other border.
383 // The borders have equal width. Sort by border style.
387 // The border have the same width and style. Rely on precedence (cell over row over row group, etc.)
395 const CollapsedBorderValue& border = compareBorders(border1, border2) < 0 ? border2 : border1;
396 return border.style() == BHIDDEN ? CollapsedBorderValue() : border;
404 // For the start border, we need to check, in order of precedence:
405 // (1) Our start border.
410 // (2) The end border of the preceding cell.
417 // (3) Our row's start border.
422 // (4) Our row group's start border.
443 // (6) The end border of the preceding column.
453 // (7) The table's start border.
467 // For end border, we need to check, in order of precedence:
468 // (1) Our end border.
473 // (2) The start border of the following cell.
483 // (3) Our row's end border.
488 // (4) Our row group's end border.
509 // (6) The start border of the next column.
519 // (7) The table's end border.
532 // For before border, we need to check, in order of precedence:
533 // (1) Our before border.
540 // (2) A before cell's after border.
546 // (3) Our row's before border.
551 // (4) The previous row's after border.
569 // (5) Our row group's before border.
574 // (6) Previous row group's after border.
597 // (9) The table's before border.
610 // For after border, we need to check, in order of precedence:
611 // (1) Our after border.
618 // (2) An after cell's before border.
624 // (3) Our row's after border. (FIXME: Deal with rowspan!)
629 // (4) The next row's before border.
639 // (5) Our row group's after border.
644 // (6) Following row group's before border.
666 // (9) The table's after border.
727 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=46191, make the collapsed border drawing
783 CollapsedBorderValue border = collapsedStartBorder();
784 if (border.exists())
785 return (border.width() + ((table()->style()->isLeftToRightDirection() ^ outer) ? 1 : 0)) / 2; // Give the extra pixel to top and left.
791 CollapsedBorderValue border = collapsedEndBorder();
792 if (border.exists())
793 return (border
799 CollapsedBorderValue border = collapsedBeforeBorder();
800 if (border.exists())
801 return (border.width() + ((table()->style()->isFlippedBlocksWritingMode() ^ outer) ? 0 : 1)) / 2; // Give the extra pixel to top and left.
807 CollapsedBorderValue border = collapsedAfterBorder();
808 if (border.exists())
809 return (border.width() + ((table()->style()->isFlippedBlocksWritingMode() ^ outer) ? 1 : 0)) / 2;
955 // We never paint diagonals at the joins. We simply let the border with the highest
963 for (CollapsedBorder* border = borders.nextBorder(); border; border = borders.nextBorder()) {
964 if (border->borderValue == *table()->currentBorderStyle())
965 drawLineForBoxSide(graphicsContext, border->x1, border->y1, border->x2, border->y2, border->side,
966 border->borderValue.color(), border->style, 0, 0);