mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-31 21:21:08 +00:00
Bug 321487: Crash when moving caret backwards over text frame consisting of a single CR [nsTextFrame::PeekOffset]. r=rbs sr=bzbarsky
This commit is contained in:
parent
d3775d717f
commit
86ce7a1abf
@ -2116,13 +2116,11 @@ nsTextFrame::PrepareUnicodeText(nsTextTransformer& aTX,
|
||||
// Get the next word
|
||||
bp = aTX.GetNextWord(inWord, &wordLen, &contentLen, &isWhitespace, &wasTransformed);
|
||||
if (nsnull == bp) {
|
||||
#ifdef IBMBIDI
|
||||
if (indexp && (mState & NS_FRAME_IS_BIDI) ) {
|
||||
if (indexp) {
|
||||
while (--n >= 0) {
|
||||
*indexp++ = strInx++;
|
||||
*indexp++ = strInx;
|
||||
}
|
||||
}
|
||||
#endif // IBMBIDI
|
||||
break;
|
||||
}
|
||||
// for ::first-letter or bidi, the content may be chopped
|
||||
|
Loading…
Reference in New Issue
Block a user