Home | History | Annotate | Download | only in rendering

Lines Matching defs:border

97         // Column widths specified on <col> apply to the border box of the cell.
275 // The following rules apply for resolving conflicts and figuring out which border
277 // (1) Borders with the 'border-style' of 'hidden' take precedence over all other conflicting
278 // borders. Any border with this value suppresses all borders at this location.
279 // (2) Borders with a style of 'none' have the lowest priority. Only if the border properties of all
280 // the elements meeting at this edge are 'none' will the border be omitted (but note that 'none' is
281 // the default value for the border style.)
283 // are discarded in favor of wider ones. If several have the same 'border-width' then styles are preferred
285 // (4) If border styles differ only in color, then a style set on a cell wins over one on a row,
298 return CollapsedBorderValue(); // No border should exist at this location.
300 // Rule #2 above. A style of 'none' has lowest priority and always loses to any other border.
310 // The borders have equal width. Sort by border style.
314 // The border have the same width and style. Rely on precedence (cell over row over row group, etc.)
329 // For border left, we need to check, in order of precedence:
330 // (1) Our left border.
333 // (2) The right border of the cell to the left.
340 // (3) Our row's left border.
345 // (4) Our row group's left border.
366 // (6) The right border of the column to the left.
375 // (7) The table's left border.
395 // For border right, we need to check, in order of precedence:
396 // (1) Our right border.
399 // (2) The left border of the cell to the right.
408 // (3) Our row's right border.
413 // (4) Our row group's right border.
434 // (6) The left border of the column to the right.
443 // (7) The table's right border.
454 // For border top, we need to check, in order of precedence:
455 // (1) Our top border.
460 // (2) A previous cell's bottom border.
466 // (3) Our row's top border.
471 // (4) The previous row's bottom border.
489 // (5) Our row group's top border.
494 // (6) Previous row group's bottom border.
517 // (9) The table's top border.
528 // For border top, we need to check, in order of precedence:
529 // (1) Our bottom border.
534 // (2) A following cell's top border.
540 // (3) Our row's bottom border. (FIXME: Deal with rowspan!)
545 // (4) The next row's top border.
555 // (5) Our row group's bottom border.
560 // (6) Following row group's top border.
582 // (9) The table's bottom border.
613 CollapsedBorderValue border = collapsedLeftBorder(table()->style()->direction() == RTL);
614 if (border.exists())
615 return (border.width() + (outer ? 0 : 1)) / 2; // Give the extra pixel to top and left.
621 CollapsedBorderValue border = collapsedRightBorder(table()->style()->direction() == RTL);
622 if (border.exists())
623 return (border.width() + (outer ? 1 : 0)) / 2;
629 CollapsedBorderValue border = collapsedTopBorder();
630 if (border.exists())
631 return (border.width() + (outer ? 0 : 1)) / 2; // Give the extra pixel to top and left.
637 CollapsedBorderValue border = collapsedBottomBorder();
638 if (border.exists())
639 return (border.width() + (outer ? 1 : 0)) / 2;
803 // We never paint diagonals at the joins. We simply let the border with the highest
811 for (CollapsedBorder* border = borders.nextBorder(); border; border = borders.nextBorder()) {
812 if (border->borderValue == *table()->currentBorderStyle())
813 drawLineForBoxSide(graphicsContext, border->x1, border->y1, border->x2, border->y2, border->side,
814 border->borderValue.color(), style()->color(), border->style, 0, 0);