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
This commit is contained in:
karnaze%netscape.com 2001-10-22 14:31:18 +00:00
parent 9c91a2a8e3
commit f5419762fd
2 changed files with 2 additions and 2 deletions

View File

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

View File

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