From f5419762fde6dd2e6ceec0069229240928f7b32d Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" Date: Mon, 22 Oct 2001 14:31:18 +0000 Subject: [PATCH] bug 52531 - treate style change reflow like initial when positioning cell block. git-svn-id: svn://10.0.0.236/trunk@105935 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/table/src/nsTableCellFrame.cpp | 2 +- mozilla/layout/tables/nsTableCellFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/html/table/src/nsTableCellFrame.cpp b/mozilla/layout/html/table/src/nsTableCellFrame.cpp index 7cadc6c6ef0..026171ba479 100644 --- a/mozilla/layout/html/table/src/nsTableCellFrame.cpp +++ b/mozilla/layout/html/table/src/nsTableCellFrame.cpp @@ -774,7 +774,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext, // VerticallyAlignChild() we'll move it if it turns out to be wrong. This // avoids excessive movement and is more stable nsPoint kidOrigin; - if (eReflowReason_Initial == aReflowState.reason) { + if (isStyleChanged || (eReflowReason_Initial == aReflowState.reason)) { kidOrigin.MoveTo(leftInset, topInset); } else { // handle percent padding-left which was 0 during initial reflow diff --git a/mozilla/layout/tables/nsTableCellFrame.cpp b/mozilla/layout/tables/nsTableCellFrame.cpp index 7cadc6c6ef0..026171ba479 100644 --- a/mozilla/layout/tables/nsTableCellFrame.cpp +++ b/mozilla/layout/tables/nsTableCellFrame.cpp @@ -774,7 +774,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsIPresContext* aPresContext, // VerticallyAlignChild() we'll move it if it turns out to be wrong. This // avoids excessive movement and is more stable nsPoint kidOrigin; - if (eReflowReason_Initial == aReflowState.reason) { + if (isStyleChanged || (eReflowReason_Initial == aReflowState.reason)) { kidOrigin.MoveTo(leftInset, topInset); } else { // handle percent padding-left which was 0 during initial reflow