diff --git a/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp b/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp index e24b084dcfe..b5af58f29d6 100644 --- a/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp +++ b/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp @@ -615,8 +615,9 @@ BasicTableLayoutStrategy::ComputeNonPctColspanWidths(PRInt32 aWidthInd PRInt32 numAutoCols = 0; nscoord spacingX = mTableFrame->GetCellSpacingX(); + PRInt32 spanX; // accumulate the various divisors to be used later - for (PRInt32 spanX = 0; spanX < aColSpan; spanX++) { + for (spanX = 0; spanX < aColSpan; spanX++) { nsTableColFrame* colFrame = mTableFrame->GetColFrame(aColIndex + spanX); if (!colFrame) continue; nscoord minWidth = PR_MAX(colFrame->GetMinWidth(), 0); diff --git a/mozilla/layout/tables/BasicTableLayoutStrategy.cpp b/mozilla/layout/tables/BasicTableLayoutStrategy.cpp index e24b084dcfe..b5af58f29d6 100644 --- a/mozilla/layout/tables/BasicTableLayoutStrategy.cpp +++ b/mozilla/layout/tables/BasicTableLayoutStrategy.cpp @@ -615,8 +615,9 @@ BasicTableLayoutStrategy::ComputeNonPctColspanWidths(PRInt32 aWidthInd PRInt32 numAutoCols = 0; nscoord spacingX = mTableFrame->GetCellSpacingX(); + PRInt32 spanX; // accumulate the various divisors to be used later - for (PRInt32 spanX = 0; spanX < aColSpan; spanX++) { + for (spanX = 0; spanX < aColSpan; spanX++) { nsTableColFrame* colFrame = mTableFrame->GetColFrame(aColIndex + spanX); if (!colFrame) continue; nscoord minWidth = PR_MAX(colFrame->GetMinWidth(), 0);