diff --git a/mozilla/layout/generic/nsBlockFrame.cpp b/mozilla/layout/generic/nsBlockFrame.cpp index 8024096e8c7..7485ca850c5 100644 --- a/mozilla/layout/generic/nsBlockFrame.cpp +++ b/mozilla/layout/generic/nsBlockFrame.cpp @@ -1699,7 +1699,7 @@ nsBlockFrame::PrepareResizeReflow(nsBlockReflowState& aState) newAvailWidth += aState.mReflowState.availableWidth; } } else { - if (NS_UNCONSTRAINEDSIZE != aState.mReflowState.mComputedMaxWidth) { + if (NS_UNCONSTRAINEDSIZE != aState.mReflowState.mComputedWidth) { newAvailWidth += aState.mReflowState.mComputedWidth; } else { diff --git a/mozilla/layout/html/base/src/nsBlockFrame.cpp b/mozilla/layout/html/base/src/nsBlockFrame.cpp index 8024096e8c7..7485ca850c5 100644 --- a/mozilla/layout/html/base/src/nsBlockFrame.cpp +++ b/mozilla/layout/html/base/src/nsBlockFrame.cpp @@ -1699,7 +1699,7 @@ nsBlockFrame::PrepareResizeReflow(nsBlockReflowState& aState) newAvailWidth += aState.mReflowState.availableWidth; } } else { - if (NS_UNCONSTRAINEDSIZE != aState.mReflowState.mComputedMaxWidth) { + if (NS_UNCONSTRAINEDSIZE != aState.mReflowState.mComputedWidth) { newAvailWidth += aState.mReflowState.mComputedWidth; } else {