diff --git a/mozilla/layout/generic/nsLineLayout.cpp b/mozilla/layout/generic/nsLineLayout.cpp index 6b8f5993d47..e497ccd2d88 100644 --- a/mozilla/layout/generic/nsLineLayout.cpp +++ b/mozilla/layout/generic/nsLineLayout.cpp @@ -2636,8 +2636,8 @@ nsLineLayout::VerticalAlignFrames(PerSpanData* psd) if ( NS_SUCCEEDED(result) && blockTagAtom) { // (2) above, if the first line of LI if (isFirstLine && blockTagAtom.get() == nsHTMLAtoms::li) { - // if the line is empty, then don't force the min width (see bug 75963) - if ((mLineBox->mBounds.height > 0) || (mLineBox->mBounds.width > 0)) { + // if the line is empty, then don't force the min height (see bug 75963) + if (!IsZeroHeight()) { applyMinLH = PR_TRUE; foundLI = PR_TRUE; } diff --git a/mozilla/layout/html/base/src/nsLineLayout.cpp b/mozilla/layout/html/base/src/nsLineLayout.cpp index 6b8f5993d47..e497ccd2d88 100644 --- a/mozilla/layout/html/base/src/nsLineLayout.cpp +++ b/mozilla/layout/html/base/src/nsLineLayout.cpp @@ -2636,8 +2636,8 @@ nsLineLayout::VerticalAlignFrames(PerSpanData* psd) if ( NS_SUCCEEDED(result) && blockTagAtom) { // (2) above, if the first line of LI if (isFirstLine && blockTagAtom.get() == nsHTMLAtoms::li) { - // if the line is empty, then don't force the min width (see bug 75963) - if ((mLineBox->mBounds.height > 0) || (mLineBox->mBounds.width > 0)) { + // if the line is empty, then don't force the min height (see bug 75963) + if (!IsZeroHeight()) { applyMinLH = PR_TRUE; foundLI = PR_TRUE; }