Bug 229052. Treat pre-formatted newlines like BRs, preserving the break type in nsBlockFrame::ReflowInlineFrame. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151513 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3cfdfe11e4
commit
66839d6abc
@ -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…
x
Reference in New Issue
Block a user