Mark line after a preformatted newline as dirty during bidi resolution. Bug 1015128, r=mats

This commit is contained in:
Simon Montagu 2014-06-11 08:57:25 -07:00
parent bb0bb36de5
commit fb0563b722

View File

@ -1112,6 +1112,7 @@ nsBidiPresUtils::TraverseFrames(nsBlockFrame* aBlockFrame,
CreateContinuation(frame, &next, true);
createdContinuation = true;
}
// Mark the line before the newline as dirty.
aBpd->GetLineForFrameAt(aBpd->FrameCount() - 1)->MarkDirty();
}
ResolveParagraphWithinBlock(aBlockFrame, aBpd);
@ -1121,6 +1122,8 @@ nsBidiPresUtils::TraverseFrames(nsBlockFrame* aBlockFrame,
} else if (next) {
frame = next;
aBpd->AppendFrame(frame, aLineIter);
// Mark the line after the newline as dirty.
aBpd->GetLineForFrameAt(aBpd->FrameCount() - 1)->MarkDirty();
}
/*