Chromium Code Reviews| Index: Source/core/rendering/RenderTableSection.cpp |
| diff --git a/Source/core/rendering/RenderTableSection.cpp b/Source/core/rendering/RenderTableSection.cpp |
| index 7bd443359e355938b2044e683827cb9af469f036..282e7fa45ab0745dbbfa2c5ae61cf3c6524ae5f8 100644 |
| --- a/Source/core/rendering/RenderTableSection.cpp |
| +++ b/Source/core/rendering/RenderTableSection.cpp |
| @@ -414,7 +414,7 @@ void RenderTableSection::distributeRowSpanHeightToRows(SpanningRenderTableCells& |
| int originalBeforePosition = m_rowPos[rowIndex + rowSpan]; |
| if (extraHeightToPropagate) { |
| - for (unsigned row = lastRowIndex + lastRowSpan + 1; row <= rowIndex + rowSpan; row++) |
| + for (unsigned row = lastRowIndex + lastRowSpan; row <= rowIndex + rowSpan; row++) |
| m_rowPos[row] += extraHeightToPropagate; |
| } |
| @@ -455,11 +455,12 @@ void RenderTableSection::distributeRowSpanHeightToRows(SpanningRenderTableCells& |
| // Getting total changed height in the table |
| extraHeightToPropagate = m_rowPos[rowIndex + rowSpan] - originalBeforePosition; |
| + m_rowPos[rowIndex + rowSpan] -= extraHeightToPropagate; |
|
Julien - ping for review
2013/08/05 22:21:10
This line seems dumb: can't we just patch the dist
suchit.agrawal
2013/08/05 23:33:55
|extraHeightToPropagate| is calculated based on th
|
| } |
| if (extraHeightToPropagate) { |
| // Apply changed height by rowSpan cells to rows present at the end of the table |
| - for (unsigned row = lastRowIndex + lastRowSpan + 1; row <= m_grid.size(); row++) |
| + for (unsigned row = lastRowIndex + lastRowSpan; row <= m_grid.size(); row++) |
| m_rowPos[row] += extraHeightToPropagate; |
| } |
| } |