From ecc64d2dcd92e9e7f8fe17b43776842acf1cd6ca Mon Sep 17 00:00:00 2001 From: "rbs%maths.uq.edu.au" Date: Thu, 21 Apr 2005 21:45:59 +0000 Subject: [PATCH] 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 --- mozilla/layout/generic/nsTextFrame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/generic/nsTextFrame.cpp b/mozilla/layout/generic/nsTextFrame.cpp index 35bce97f512..db4fd19575e 100644 --- a/mozilla/layout/generic/nsTextFrame.cpp +++ b/mozilla/layout/generic/nsTextFrame.cpp @@ -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) {