bug 99923 react correctly on style change reflows targetted at higher frames

r=karnaze sr=attinasi
This commit is contained in:
bernd.mielke%snafu.de 2001-11-22 19:34:59 +00:00
parent 98f0f033a8
commit e3b400c2cf
2 changed files with 6 additions and 2 deletions

View File

@ -821,7 +821,9 @@ 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 (isStyleChanged || (eReflowReason_Initial == aReflowState.reason)) {
if (isStyleChanged ||
(eReflowReason_Initial == aReflowState.reason) ||
(eReflowReason_StyleChange == aReflowState.reason)) {
kidOrigin.MoveTo(leftInset, topInset);
} else {
// handle percent padding-left which was 0 during initial reflow

View File

@ -821,7 +821,9 @@ 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 (isStyleChanged || (eReflowReason_Initial == aReflowState.reason)) {
if (isStyleChanged ||
(eReflowReason_Initial == aReflowState.reason) ||
(eReflowReason_StyleChange == aReflowState.reason)) {
kidOrigin.MoveTo(leftInset, topInset);
} else {
// handle percent padding-left which was 0 during initial reflow