Bug 1797009 - Use PushTruncatedLine() once more. r=layout-reviewers,emilio

Differential Revision: https://phabricator.services.mozilla.com/D160171
This commit is contained in:
Ting-Yu Lin 2022-10-25 17:28:28 +00:00
parent db2cf07ec5
commit d0b5d62f69

View file

@ -2881,9 +2881,7 @@ void nsBlockFrame::ReflowDirtyLines(BlockReflowState& aState) {
// Immediately fragment for page-name. It is possible we could break // Immediately fragment for page-name. It is possible we could break
// out of the loop right here, but this should make it more similar to // out of the loop right here, but this should make it more similar to
// what happens when reflow causes fragmentation. // what happens when reflow causes fragmentation.
keepGoing = false; PushTruncatedLine(aState, line, &keepGoing);
PushLines(aState, line.prev());
aState.mReflowStatus.SetIncomplete();
} else { } else {
// Reflow the dirty line. If it's an incremental reflow, then force // Reflow the dirty line. If it's an incremental reflow, then force
// it to invalidate the dirty area if necessary // it to invalidate the dirty area if necessary