Bug 369227. Record the first soft break beyond the available width, if there isn't one within the available width. r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@220621 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2007-02-21 01:52:03 +00:00
parent 5156d244db
commit c5bc6fd3ff
4 changed files with 27 additions and 16 deletions

View File

@@ -1048,7 +1048,7 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
// record soft break opportunity after this content that can't be
// part of a text run. This is not a text frame so we know
// that offset PR_INT32_MAX means "after the content".
if (NotifyOptionalBreakPosition(aFrame->GetContent(), PR_INT32_MAX)) {
if (NotifyOptionalBreakPosition(aFrame->GetContent(), PR_INT32_MAX, PR_TRUE)) {
// If this returns true then we are being told to actually break here.
aReflowStatus = NS_INLINE_LINE_BREAK_AFTER(aReflowStatus);
}