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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user