Backing out fix for bug 192088, which caused regressions for Persian and Indic scripts. r=gisburn, sr=roc+moz, a=asa.

This commit is contained in:
smontagu%netscape.com 2003-05-20 18:19:09 +00:00
parent dddd145e35
commit ff871f7563
2 changed files with 0 additions and 16 deletions

View File

@ -1070,14 +1070,6 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
if (NeedsArabicShaping()) {
DoArabicShaping(result, wordLen, aWasTransformed);
}
else {
// We need to strip zero-width joiners and non-joiners even when not
// doing Arabic shaping, in order to catch cases where these
// characters appear in preshaped text (Bug 192088)
// We can't strip them any earlier, because they affect the results
// of the Arabic shaping algorithm.
StripZeroWidthJoinControls(result, result, wordLen, aWasTransformed);
}
if (NeedsNumericShaping()) {
DoNumericShaping(result, wordLen, aWasTransformed);
}

View File

@ -1070,14 +1070,6 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
if (NeedsArabicShaping()) {
DoArabicShaping(result, wordLen, aWasTransformed);
}
else {
// We need to strip zero-width joiners and non-joiners even when not
// doing Arabic shaping, in order to catch cases where these
// characters appear in preshaped text (Bug 192088)
// We can't strip them any earlier, because they affect the results
// of the Arabic shaping algorithm.
StripZeroWidthJoinControls(result, result, wordLen, aWasTransformed);
}
if (NeedsNumericShaping()) {
DoNumericShaping(result, wordLen, aWasTransformed);
}