mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
Bug 229052. Treat pre-formatted newlines like BRs, preserving the break type in nsBlockFrame::ReflowInlineFrame. r+sr=dbaron
This commit is contained in:
parent
4eeb837c65
commit
0113914771
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user