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
parent 7ed9862dea
commit 036c9171d0

View File

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