Make line boxes have the right width when justifying. Bug 309761, r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@194200 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-04-12 01:07:01 +00:00
parent f3f3ba1e7e
commit 6dc3270ec7
2 changed files with 8 additions and 2 deletions

View File

@@ -2839,7 +2839,9 @@ nsLineLayout::HorizontalAlignFrames(nsRect& aLineBounds,
if (numSpaces > 0) {
FrameJustificationState state = { numSpaces, numLetters, remainingWidth, 0, 0, 0, 0, 0 };
ApplyFrameJustification(psd, &state);
// Apply the justification, and make sure to update our linebox
// width to account for it.
aLineBounds.width += ApplyFrameJustification(psd, &state);
}
}
}