зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
b179db4271
Коммит
ecf13abb51
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче