Oops, undoing unrelated change

git-svn-id: svn://10.0.0.236/trunk@231775 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2007-08-10 02:34:30 +00:00
parent 6da327649c
commit dd2750ace1

View File

@@ -5545,9 +5545,20 @@ nsTextFrame::Reflow(nsPresContext* aPresContext,
// This is corrected for in nsLineLayout::TrimWhiteSpaceIn.
PRInt32 numJustifiableCharacters =
provider.ComputeJustifiableCharacters(offset, charsFit);
// Currently canTrimTrailingWhitespace is always true here
// because of the !textStyle->WhiteSpaceIsSignificant() test,
// but that could change...
if (canTrimTrailingWhitespace) {
// Count trimmed spaces and add them to the cluster count
PRUint32 charIndex = transformedOffset + transformedCharsFit;
while (charIndex > transformedOffset &&
mTextRun->GetChar(charIndex - 1) == ' ') {
--charIndex;
}
}
NS_ASSERTION(numJustifiableCharacters <= charsFit,
"Bad justifiable character count");
"Justifiable characters combined???");
lineLayout.SetTextJustificationWeights(numJustifiableCharacters,
charsFit - numJustifiableCharacters);
}