mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
bug 99923 react correctly on style change reflows targetted at higher frames
r=karnaze sr=attinasi
This commit is contained in:
parent
98f0f033a8
commit
e3b400c2cf
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user