Home | History | Annotate | Download | only in rendering

Lines Matching full:cell

77     // In the collapsed border model, there is no cell spacing.
766 // Determined by the first cell of the first row. See the CSS 2.1 spec, section 17.6.2.
802 if (cs.cell) {
803 const BorderValue& cb = cs.cell->style()->borderLeft();
807 const BorderValue& rb = cs.cell->parent()->style()->borderLeft();
825 // Determined by the last cell of the first row. See the CSS 2.1 spec, section 17.6.2.
861 if (cs.cell) {
862 const BorderValue& cb = cs.cell->style()->borderRight();
866 const BorderValue& rb = cs.cell->parent()->style()->borderRight();
1050 RenderTableCell* RenderTable::cellAbove(const RenderTableCell* cell) const
1055 int r = cell->row();
1059 // cell is not in the first row, so use the above row in its own section
1060 section = cell->section();
1063 section = sectionAbove(cell->section(), true);
1068 // Look up the cell in the section's grid, which requires effective col index
1070 int effCol = colToEffCol(cell->col());
1072 // If we hit a span back up to a real cell.
1076 } while (!aboveCell.cell && aboveCell.inColSpan && effCol >= 0);
1077 return aboveCell.cell;
1082 RenderTableCell* RenderTable::cellBelow(const RenderTableCell* cell) const
1087 int r = cell->row() + cell->rowSpan() - 1;
1090 if (r < cell->section()->numRows() - 1) {
1091 // The cell is not in the last row, so use the next row in the section.
1092 section = cell->section();
1095 section = sectionBelow(cell->section(), true);
1100 // Look up the cell in the section's grid, which requires effective col index
1102 int effCol = colToEffCol(cell->col());
1104 // If we hit a colspan back up to a real cell.
1108 } while (!belowCell.cell && belowCell.inColSpan && effCol >= 0);
1109 return belowCell.cell;
1114 RenderTableCell* RenderTable::cellBefore(const RenderTableCell* cell) const
1118 RenderTableSection* section = cell->section();
1119 int effCol = colToEffCol(cell->col());
1123 // If we hit a colspan back up to a real cell.
1126 prevCell = section->cellAt(cell->row(), effCol - 1);
1128 } while (!prevCell.cell && prevCell.inColSpan && effCol >= 0);
1129 return prevCell.cell;
1132 RenderTableCell* RenderTable::cellAfter(const RenderTableCell* cell) const
1136 int effCol = colToEffCol(cell->col() + cell->colSpan());
1139 return cell->section()->cellAt(cell->row(), effCol).cell;