mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
backing out checked into closed tree
This commit is contained in:
parent
32db6e0260
commit
36f7dde2e4
@ -411,11 +411,6 @@ nsTextTransformer::ScanNormalAsciiText_F_ForWordBreak(PRInt32* aWordLen,
|
|||||||
} else {
|
} else {
|
||||||
bp2 += mBufferPos;
|
bp2 += mBufferPos;
|
||||||
}
|
}
|
||||||
PRBool readingAlphaNumeric = PR_TRUE; //only used in sWordSelectStopAtPunctuation
|
|
||||||
|
|
||||||
//we must know if we are starting in alpha numerics.
|
|
||||||
if (sWordSelectStopAtPunctuation && offset < fragLen)
|
|
||||||
readingAlphaNumeric = isalnum((unsigned char)*cp);
|
|
||||||
|
|
||||||
for (; offset < fragLen && !breakAfterThis; offset++) {
|
for (; offset < fragLen && !breakAfterThis; offset++) {
|
||||||
unsigned char ch = *cp++;
|
unsigned char ch = *cp++;
|
||||||
@ -430,7 +425,7 @@ nsTextTransformer::ScanNormalAsciiText_F_ForWordBreak(PRInt32* aWordLen,
|
|||||||
else if (XP_IS_SPACE(ch)) {
|
else if (XP_IS_SPACE(ch)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (sWordSelectStopAtPunctuation && ((readingAlphaNumeric && !isalnum(ch)) || (!readingAlphaNumeric && isalnum(ch)) )) {
|
else if (sWordSelectStopAtPunctuation && !isalnum(ch)) {
|
||||||
// on some platforms, punctuation breaks words too.
|
// on some platforms, punctuation breaks words too.
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -411,11 +411,6 @@ nsTextTransformer::ScanNormalAsciiText_F_ForWordBreak(PRInt32* aWordLen,
|
|||||||
} else {
|
} else {
|
||||||
bp2 += mBufferPos;
|
bp2 += mBufferPos;
|
||||||
}
|
}
|
||||||
PRBool readingAlphaNumeric = PR_TRUE; //only used in sWordSelectStopAtPunctuation
|
|
||||||
|
|
||||||
//we must know if we are starting in alpha numerics.
|
|
||||||
if (sWordSelectStopAtPunctuation && offset < fragLen)
|
|
||||||
readingAlphaNumeric = isalnum((unsigned char)*cp);
|
|
||||||
|
|
||||||
for (; offset < fragLen && !breakAfterThis; offset++) {
|
for (; offset < fragLen && !breakAfterThis; offset++) {
|
||||||
unsigned char ch = *cp++;
|
unsigned char ch = *cp++;
|
||||||
@ -430,7 +425,7 @@ nsTextTransformer::ScanNormalAsciiText_F_ForWordBreak(PRInt32* aWordLen,
|
|||||||
else if (XP_IS_SPACE(ch)) {
|
else if (XP_IS_SPACE(ch)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (sWordSelectStopAtPunctuation && ((readingAlphaNumeric && !isalnum(ch)) || (!readingAlphaNumeric && isalnum(ch)) )) {
|
else if (sWordSelectStopAtPunctuation && !isalnum(ch)) {
|
||||||
// on some platforms, punctuation breaks words too.
|
// on some platforms, punctuation breaks words too.
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user