No bug. Comment-only change to note a potential optimization opportunity.

git-svn-id: svn://10.0.0.236/trunk@222210 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu 2007-03-22 23:10:10 +00:00
parent af4b0389ed
commit 7fa4849a90

View File

@ -3298,6 +3298,9 @@ nsBlockFrame::DoReflowInlineFrames(nsBlockReflowState& aState,
// We need to try backing up to before a text run
PRInt32 offset;
nsIContent* breakContent = aLineLayout.GetLastOptionalBreakPosition(&offset);
// XXX It's possible, in fact not unusual, for the break opportunity to already
// be the end of the line. We should detect that and optimize to not
// re-do the line.
if (breakContent) {
// We can back up!
lineReflowStatus = LINE_REFLOW_REDO_NO_PULL;