OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1513 if (!cell->isTableCell()) | 1513 if (!cell->isTableCell()) |
1514 continue; | 1514 continue; |
1515 | 1515 |
1516 RenderTableCell* tableCell = toRenderTableCell(cell); | 1516 RenderTableCell* tableCell = toRenderTableCell(cell); |
1517 addCell(tableCell, tableRow); | 1517 addCell(tableCell, tableRow); |
1518 } | 1518 } |
1519 } | 1519 } |
1520 } | 1520 } |
1521 | 1521 |
1522 m_grid.shrinkToFit(); | 1522 m_grid.shrinkToFit(); |
1523 setNeedsLayout(); | 1523 setNeedsLayoutAndFullRepaint(); |
1524 } | 1524 } |
1525 | 1525 |
1526 // FIXME: This function could be made O(1) in certain cases (like for the non-mo
st-constrainive cells' case). | 1526 // FIXME: This function could be made O(1) in certain cases (like for the non-mo
st-constrainive cells' case). |
1527 void RenderTableSection::rowLogicalHeightChanged(unsigned rowIndex) | 1527 void RenderTableSection::rowLogicalHeightChanged(unsigned rowIndex) |
1528 { | 1528 { |
1529 if (needsCellRecalc()) | 1529 if (needsCellRecalc()) |
1530 return; | 1530 return; |
1531 | 1531 |
1532 setRowLogicalHeightToRowStyleLogicalHeight(m_grid[rowIndex]); | 1532 setRowLogicalHeightToRowStyleLogicalHeight(m_grid[rowIndex]); |
1533 | 1533 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1731 else | 1731 else |
1732 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); | 1732 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); |
1733 | 1733 |
1734 cell->setLogicalLocation(cellLocation); | 1734 cell->setLogicalLocation(cellLocation); |
1735 | 1735 |
1736 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) | 1736 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) |
1737 view()->addLayoutDelta(oldCellLocation - cell->location()); | 1737 view()->addLayoutDelta(oldCellLocation - cell->location()); |
1738 } | 1738 } |
1739 | 1739 |
1740 } // namespace WebCore | 1740 } // namespace WebCore |
OLD | NEW |