bug 60749 - on a table cell frame style change reflow, reinitialize the table's strategy.

This commit is contained in:
karnaze%netscape.com 2001-03-26 06:13:56 +00:00
Родитель 656fcbb1f4
Коммит 83b5a56248
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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