diff --git a/mozilla/layout/generic/nsBlockFrame.cpp b/mozilla/layout/generic/nsBlockFrame.cpp index aad0e78818f..69597d0d22f 100644 --- a/mozilla/layout/generic/nsBlockFrame.cpp +++ b/mozilla/layout/generic/nsBlockFrame.cpp @@ -1918,7 +1918,7 @@ nsBlockFrame::ReflowDirtyLines(nsBlockReflowState& aState) // to the result of nextLine->ShouldApplyTopMargin. if (line.next() != end_lines()) { PRBool maybeWasEmpty = oldY == line.next()->mBounds.y; - PRBool isEmpty = line->mBounds.width == 0 && line->CachedIsEmpty(); + PRBool isEmpty = line->CachedIsEmpty(); if (maybeReflowingForFirstTime /*1*/ || (isEmpty || maybeWasEmpty) /*2/3/4*/) { line.next()->MarkPreviousMarginDirty(); diff --git a/mozilla/layout/reftests/bugs/421239-1-ref.html b/mozilla/layout/reftests/bugs/421239-1-ref.html new file mode 100644 index 00000000000..6e75fc08e6e --- /dev/null +++ b/mozilla/layout/reftests/bugs/421239-1-ref.html @@ -0,0 +1,12 @@ + + +
+ + + + +