diff --git a/layout/generic/nsBlockFrame.cpp b/layout/generic/nsBlockFrame.cpp index c05463acc63..9a1dd89c8a9 100644 --- a/layout/generic/nsBlockFrame.cpp +++ b/layout/generic/nsBlockFrame.cpp @@ -3220,7 +3220,7 @@ nsBlockFrame::CalculateMargins(nsBlockReflowState& aState, // Compute the collapsed top margin value (this is a generational // margin collapse not a sibling margin collapse). nscoord collapsedTopMargin = - nsInlineReflow::MaxMargin(childsCarriedOutBottomMargin, childsTopMargin); + nsInlineReflow::MaxMargin(childsCarriedOutTopMargin, childsTopMargin); // Now perform sibling to sibling margin collapsing. collapsedTopMargin = nsInlineReflow::MaxMargin(aState.mPrevBottomMargin, diff --git a/layout/generic/nsBlockReflowState.cpp b/layout/generic/nsBlockReflowState.cpp index c05463acc63..9a1dd89c8a9 100644 --- a/layout/generic/nsBlockReflowState.cpp +++ b/layout/generic/nsBlockReflowState.cpp @@ -3220,7 +3220,7 @@ nsBlockFrame::CalculateMargins(nsBlockReflowState& aState, // Compute the collapsed top margin value (this is a generational // margin collapse not a sibling margin collapse). nscoord collapsedTopMargin = - nsInlineReflow::MaxMargin(childsCarriedOutBottomMargin, childsTopMargin); + nsInlineReflow::MaxMargin(childsCarriedOutTopMargin, childsTopMargin); // Now perform sibling to sibling margin collapsing. collapsedTopMargin = nsInlineReflow::MaxMargin(aState.mPrevBottomMargin, diff --git a/layout/generic/nsBlockReflowState.h b/layout/generic/nsBlockReflowState.h index c05463acc63..9a1dd89c8a9 100644 --- a/layout/generic/nsBlockReflowState.h +++ b/layout/generic/nsBlockReflowState.h @@ -3220,7 +3220,7 @@ nsBlockFrame::CalculateMargins(nsBlockReflowState& aState, // Compute the collapsed top margin value (this is a generational // margin collapse not a sibling margin collapse). nscoord collapsedTopMargin = - nsInlineReflow::MaxMargin(childsCarriedOutBottomMargin, childsTopMargin); + nsInlineReflow::MaxMargin(childsCarriedOutTopMargin, childsTopMargin); // Now perform sibling to sibling margin collapsing. collapsedTopMargin = nsInlineReflow::MaxMargin(aState.mPrevBottomMargin, diff --git a/layout/html/base/src/nsBlockFrame.cpp b/layout/html/base/src/nsBlockFrame.cpp index c05463acc63..9a1dd89c8a9 100644 --- a/layout/html/base/src/nsBlockFrame.cpp +++ b/layout/html/base/src/nsBlockFrame.cpp @@ -3220,7 +3220,7 @@ nsBlockFrame::CalculateMargins(nsBlockReflowState& aState, // Compute the collapsed top margin value (this is a generational // margin collapse not a sibling margin collapse). nscoord collapsedTopMargin = - nsInlineReflow::MaxMargin(childsCarriedOutBottomMargin, childsTopMargin); + nsInlineReflow::MaxMargin(childsCarriedOutTopMargin, childsTopMargin); // Now perform sibling to sibling margin collapsing. collapsedTopMargin = nsInlineReflow::MaxMargin(aState.mPrevBottomMargin, diff --git a/layout/html/base/src/nsBlockReflowState.cpp b/layout/html/base/src/nsBlockReflowState.cpp index c05463acc63..9a1dd89c8a9 100644 --- a/layout/html/base/src/nsBlockReflowState.cpp +++ b/layout/html/base/src/nsBlockReflowState.cpp @@ -3220,7 +3220,7 @@ nsBlockFrame::CalculateMargins(nsBlockReflowState& aState, // Compute the collapsed top margin value (this is a generational // margin collapse not a sibling margin collapse). nscoord collapsedTopMargin = - nsInlineReflow::MaxMargin(childsCarriedOutBottomMargin, childsTopMargin); + nsInlineReflow::MaxMargin(childsCarriedOutTopMargin, childsTopMargin); // Now perform sibling to sibling margin collapsing. collapsedTopMargin = nsInlineReflow::MaxMargin(aState.mPrevBottomMargin, diff --git a/layout/html/base/src/nsBlockReflowState.h b/layout/html/base/src/nsBlockReflowState.h index c05463acc63..9a1dd89c8a9 100644 --- a/layout/html/base/src/nsBlockReflowState.h +++ b/layout/html/base/src/nsBlockReflowState.h @@ -3220,7 +3220,7 @@ nsBlockFrame::CalculateMargins(nsBlockReflowState& aState, // Compute the collapsed top margin value (this is a generational // margin collapse not a sibling margin collapse). nscoord collapsedTopMargin = - nsInlineReflow::MaxMargin(childsCarriedOutBottomMargin, childsTopMargin); + nsInlineReflow::MaxMargin(childsCarriedOutTopMargin, childsTopMargin); // Now perform sibling to sibling margin collapsing. collapsedTopMargin = nsInlineReflow::MaxMargin(aState.mPrevBottomMargin,