diff --git a/layout/html/table/src/nsTableCellFrame.cpp b/layout/html/table/src/nsTableCellFrame.cpp index 81c79d55ae41..7aaa57dd5535 100644 --- a/layout/html/table/src/nsTableCellFrame.cpp +++ b/layout/html/table/src/nsTableCellFrame.cpp @@ -433,6 +433,7 @@ nsTableCellFrame::CreateContinuingFrame(nsIPresContext& aPresContext, } cf->Init(aPresContext, mContent, aParent, aStyleContext); cf->AppendToFlow(this); + cf->InitCellFrame(GetColIndex()); aContinuingFrame = cf; // Create a continuing body frame diff --git a/layout/html/table/src/nsTableRowFrame.cpp b/layout/html/table/src/nsTableRowFrame.cpp index eecbae176a3c..ca2fb4f2e9ee 100644 --- a/layout/html/table/src/nsTableRowFrame.cpp +++ b/layout/html/table/src/nsTableRowFrame.cpp @@ -1426,8 +1426,9 @@ nsTableRowFrame::CreateContinuingFrame(nsIPresContext& aPresContext, } cf->Init(aPresContext, mContent, aParent, aStyleContext); cf->AppendToFlow(this); + cf->SetRowIndex(GetRowIndex()); - // Create a continuing frame for each table cell + // Create a continuing frame for each table cell frame nsIFrame* newChildList; for (nsIFrame* kidFrame = mFirstChild; nsnull != kidFrame; diff --git a/layout/tables/nsTableCellFrame.cpp b/layout/tables/nsTableCellFrame.cpp index 81c79d55ae41..7aaa57dd5535 100644 --- a/layout/tables/nsTableCellFrame.cpp +++ b/layout/tables/nsTableCellFrame.cpp @@ -433,6 +433,7 @@ nsTableCellFrame::CreateContinuingFrame(nsIPresContext& aPresContext, } cf->Init(aPresContext, mContent, aParent, aStyleContext); cf->AppendToFlow(this); + cf->InitCellFrame(GetColIndex()); aContinuingFrame = cf; // Create a continuing body frame diff --git a/layout/tables/nsTableRowFrame.cpp b/layout/tables/nsTableRowFrame.cpp index eecbae176a3c..ca2fb4f2e9ee 100644 --- a/layout/tables/nsTableRowFrame.cpp +++ b/layout/tables/nsTableRowFrame.cpp @@ -1426,8 +1426,9 @@ nsTableRowFrame::CreateContinuingFrame(nsIPresContext& aPresContext, } cf->Init(aPresContext, mContent, aParent, aStyleContext); cf->AppendToFlow(this); + cf->SetRowIndex(GetRowIndex()); - // Create a continuing frame for each table cell + // Create a continuing frame for each table cell frame nsIFrame* newChildList; for (nsIFrame* kidFrame = mFirstChild; nsnull != kidFrame;