Fix bug 101180 - the minimum line-height wasn't applied at the first reflow, causing the line to flicker at the next reflow, r=dbaron, sr=attinasi, a=asa

git-svn-id: svn://10.0.0.236/trunk@116634 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rbs%maths.uq.edu.au
2002-03-15 08:03:18 +00:00
parent 6a7c0622bb
commit 77105b9e58
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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;
}