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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user