From 81155abb2a7aaee71c48611c03bbc0e975b7dec8 Mon Sep 17 00:00:00 2001 From: "karnaze@netscape.com" Date: Mon, 26 Mar 2001 06:13:56 +0000 Subject: [PATCH] bug 60749 - on a table cell frame style change reflow, reinitialize the table's strategy. --- layout/html/table/src/nsTableCellFrame.cpp | 2 ++ layout/tables/nsTableCellFrame.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/layout/html/table/src/nsTableCellFrame.cpp b/layout/html/table/src/nsTableCellFrame.cpp index e3ca3b675ff7..01d9e041f084 100644 --- a/layout/html/table/src/nsTableCellFrame.cpp +++ b/layout/html/table/src/nsTableCellFrame.cpp @@ -659,6 +659,8 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext, if (isStyleChanged) { kidReflowState.reason = eReflowReason_StyleChange; kidReflowState.reflowCommand = nsnull; + // the following could be optimized with a fair amount of effort + tableFrame->SetNeedStrategyInit(PR_TRUE); } // Assume the inner child will stay positioned exactly where it is. Later in diff --git a/layout/tables/nsTableCellFrame.cpp b/layout/tables/nsTableCellFrame.cpp index e3ca3b675ff7..01d9e041f084 100644 --- a/layout/tables/nsTableCellFrame.cpp +++ b/layout/tables/nsTableCellFrame.cpp @@ -659,6 +659,8 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext, if (isStyleChanged) { kidReflowState.reason = eReflowReason_StyleChange; kidReflowState.reflowCommand = nsnull; + // the following could be optimized with a fair amount of effort + tableFrame->SetNeedStrategyInit(PR_TRUE); } // Assume the inner child will stay positioned exactly where it is. Later in