Tweak to the patch for bug 263359 to prevent regressing bug 644768, r=roc

This commit is contained in:
Simon Montagu 2011-04-11 11:00:33 +03:00
parent 9261f73706
commit be2fe407f5

View File

@ -803,8 +803,6 @@ nsBidiPresUtils::TraverseFrames(nsBlockFrame* aBlockFrame,
mBuffer.Append(Substring(text, start, endLine - start));
if (PRUint32(endLine) < text.Length()) {
nsTextFrame* textFrame = static_cast<nsTextFrame*>(frame);
textFrame->SetLength(endLine - start, nsnull);
next = frame->GetNextInFlow();
if (!next) {
// If the frame already has a bidi continuation, make it fluid
@ -817,6 +815,8 @@ nsBidiPresUtils::TraverseFrames(nsBlockFrame* aBlockFrame,
CreateContinuation(frame, &next, PR_TRUE);
}
}
nsTextFrame* textFrame = static_cast<nsTextFrame*>(frame);
textFrame->SetLength(endLine - start, nsnull);
}
ResolveParagraphWithinBlock(aBlockFrame);