Bug 330964 - Make nsTableFrame::GetCellSpacing[XY] take an argument. r=roc

This commit is contained in:
James Kitchener
2014-06-15 00:53:00 +02:00
parent adf6041661
commit 080d8cc6c4
7 changed files with 188 additions and 79 deletions

View File

@@ -828,9 +828,10 @@ CalcUnpaginagedHeight(nsPresContext* aPresContext,
int32_t rowIndex;
firstCellInFlow->GetRowIndex(rowIndex);
int32_t rowSpan = aTableFrame.GetEffectiveRowSpan(*firstCellInFlow);
nscoord cellSpacing = firstTableInFlow->GetCellSpacingY();
nscoord computedHeight = ((rowSpan - 1) * cellSpacing) - aVerticalBorderPadding;
nscoord computedHeight = firstTableInFlow->GetCellSpacingY(rowIndex,
rowIndex + rowSpan - 1);
computedHeight -= aVerticalBorderPadding;
int32_t rowX;
for (row = firstRGInFlow->GetFirstRow(), rowX = 0; row; row = row->GetNextRow(), rowX++) {
if (rowX > rowIndex + rowSpan - 1) {