| 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, 2013 Apple Inc. All r
ights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2013 Apple Inc. All r
ights 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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 unsigned nEffCols = table()->numEffCols(); | 893 unsigned nEffCols = table()->numEffCols(); |
| 894 | 894 |
| 895 LayoutStateMaintainer statePusher(*this, locationOffset()); | 895 LayoutStateMaintainer statePusher(*this, locationOffset()); |
| 896 | 896 |
| 897 for (unsigned r = 0; r < totalRows; r++) { | 897 for (unsigned r = 0; r < totalRows; r++) { |
| 898 // Set the row's x/y position and width/height. | 898 // Set the row's x/y position and width/height. |
| 899 if (RenderTableRow* rowRenderer = m_grid[r].rowRenderer) { | 899 if (RenderTableRow* rowRenderer = m_grid[r].rowRenderer) { |
| 900 rowRenderer->setLocation(LayoutPoint(0, m_rowPos[r])); | 900 rowRenderer->setLocation(LayoutPoint(0, m_rowPos[r])); |
| 901 rowRenderer->setLogicalWidth(logicalWidth()); | 901 rowRenderer->setLogicalWidth(logicalWidth()); |
| 902 rowRenderer->setLogicalHeight(m_rowPos[r + 1] - m_rowPos[r] - vspaci
ng); | 902 rowRenderer->setLogicalHeight(m_rowPos[r + 1] - m_rowPos[r] - vspaci
ng); |
| 903 rowRenderer->updateLayerTransform(); | 903 rowRenderer->updateLayerTransformAfterLayout(); |
| 904 rowRenderer->clearAllOverflows(); | 904 rowRenderer->clearAllOverflows(); |
| 905 rowRenderer->addVisualEffectOverflow(); | 905 rowRenderer->addVisualEffectOverflow(); |
| 906 } | 906 } |
| 907 | 907 |
| 908 int rowHeightIncreaseForPagination = 0; | 908 int rowHeightIncreaseForPagination = 0; |
| 909 | 909 |
| 910 for (unsigned c = 0; c < nEffCols; c++) { | 910 for (unsigned c = 0; c < nEffCols; c++) { |
| 911 CellStruct& cs = cellAt(r, c); | 911 CellStruct& cs = cellAt(r, c); |
| 912 RenderTableCell* cell = cs.primaryCell(); | 912 RenderTableCell* cell = cs.primaryCell(); |
| 913 | 913 |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1723 else | 1723 else |
| 1724 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); | 1724 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); |
| 1725 | 1725 |
| 1726 cell->setLogicalLocation(cellLocation); | 1726 cell->setLogicalLocation(cellLocation); |
| 1727 | 1727 |
| 1728 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) | 1728 if (!RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) |
| 1729 view()->addLayoutDelta(oldCellLocation - cell->location()); | 1729 view()->addLayoutDelta(oldCellLocation - cell->location()); |
| 1730 } | 1730 } |
| 1731 | 1731 |
| 1732 } // namespace WebCore | 1732 } // namespace WebCore |
| OLD | NEW |