Oops, undoing unrelated change
git-svn-id: svn://10.0.0.236/trunk@231775 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user