view-source crashes on bidi text, b=291176, r=smontagu, sr=bz, a=asa

git-svn-id: svn://10.0.0.236/trunk@172583 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rbs%maths.uq.edu.au
2005-04-21 21:45:59 +00:00
parent d846a45c90
commit ecc64d2dcd

View File

@@ -1688,8 +1688,8 @@ nsTextFrame::PrepareUnicodeText(nsTextTransformer& aTX,
#endif // IBMBIDI
break;
}
// for ::first-letter, the content is chopped
if (mState & TEXT_FIRST_LETTER) {
// for ::first-letter or bidi, the content may be chopped
if (mState & (TEXT_FIRST_LETTER | NS_FRAME_IS_BIDI)) {
// XXX: doesn't support the case where the first-letter expands, e.g.,
// with text-transform:capitalize, the German szlig; becomes SS.
if (contentLen > n) {