Don't resolve bidi paragraph in preformatted text until we really get to the end of the line. Bug 670226, r=roc

This commit is contained in:
Simon Montagu 2011-07-12 10:34:52 +03:00
Родитель 0ae6d3eeed
Коммит 060fccf93b
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -817,8 +817,13 @@ nsBidiPresUtils::TraverseFrames(nsBlockFrame* aBlockFrame,
NS_MIN(end, endLine) - start));
}
if (end < endLine) {
mPrevContent = nsnull;
break;
}
PRBool createdContinuation = PR_FALSE;
if (end >= endLine && PRUint32(endLine) < text.Length()) {
if (PRUint32(endLine) < text.Length()) {
/*
* Timing is everything here: if the frame already has a bidi
* continuation, we need to make the continuation fluid *before*