Bug 229052. Treat pre-formatted newlines like BRs, preserving the break type in nsBlockFrame::ReflowInlineFrame. r+sr=dbaron

This commit is contained in:
roc+%cs.cmu.edu 2004-01-18 19:35:19 +00:00
parent 4eeb837c65
commit 0113914771
2 changed files with 2 additions and 0 deletions

View File

@ -5165,6 +5165,7 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
: NS_FRAME_NOT_COMPLETE;
if (endsInNewline) {
rs = NS_INLINE_LINE_BREAK_AFTER(rs);
lineLayout.SetLineEndsInBR(PR_TRUE);
}
else if ((aTextData.mOffset != contentLength) && (aTextData.mOffset == startingOffset)) {
// Break-before a long-word that doesn't fit here

View File

@ -5165,6 +5165,7 @@ nsTextFrame::MeasureText(nsIPresContext* aPresContext,
: NS_FRAME_NOT_COMPLETE;
if (endsInNewline) {
rs = NS_INLINE_LINE_BREAK_AFTER(rs);
lineLayout.SetLineEndsInBR(PR_TRUE);
}
else if ((aTextData.mOffset != contentLength) && (aTextData.mOffset == startingOffset)) {
// Break-before a long-word that doesn't fit here