b=255990 backing-out the previous patch, we should try to better fix.

git-svn-id: svn://10.0.0.236/trunk@203238 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
masayuki%d-toybox.com
2006-07-20 09:04:39 +00:00
parent 535646bfbb
commit ae6ef23476
7 changed files with 85 additions and 76 deletions

View File

@@ -344,11 +344,8 @@ nsTextTransformer::ScanNormalAsciiText_F(PRInt32* aWordLen,
bp2 += mBufferPos;
}
PRUnichar prevCh;
PRUnichar ch = 0;
for (; offset < fragLen; offset++) {
prevCh = (ch == ' ') ? CH_NBSP : ch;
ch = *cp++;
unsigned char ch = *cp++;
if (XP_IS_SPACE(ch)) {
break;
}
@@ -356,10 +353,6 @@ nsTextTransformer::ScanNormalAsciiText_F(PRInt32* aWordLen,
ch = ' ';
*aWasTransformed = PR_TRUE;
}
else if (offset != mOffset &&
nsContentUtils::LineBreaker()->CanBreakBetweenLatin1(prevCh, ch)) {
break;
}
else if (IS_DISCARDED(ch)) {
// Strip discarded characters from the transformed output
continue;