From afed38e6dbe1d4e893eaed3a717c680b6c9dd496 Mon Sep 17 00:00:00 2001 From: "troy@netscape.com" Date: Wed, 16 Dec 1998 03:46:03 +0000 Subject: [PATCH] Some improvements to the row splitting code --- layout/html/table/src/nsTableCellFrame.cpp | 1 + layout/html/table/src/nsTableRowFrame.cpp | 3 ++- layout/tables/nsTableCellFrame.cpp | 1 + layout/tables/nsTableRowFrame.cpp | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) 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;