Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Never force a break before when we're already inside the node.
When resuming a node after a fragmentainer break, ignore break-before values, since we're obviously not *before* it anymore (since we're *inside*). We used to end up in an infinite loop, until out of memory, not making any fragmentation progress. This was caused by monolithic content, which, when printing, may take up space on subsequent pages. This tricked us into thinking that it was a good place to insert a forced break before the node we were resuming, since we were not at the beginning of the page. (cherry picked from commit 103e40f) Bug: 1451760 Change-Id: I3c3168478f0f23035abd10597927cee47c00730c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4594563 Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1156463} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4615086 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5790@{#779} Cr-Branched-From: 1d71a33-refs/heads/main@{#1148114}
- Loading branch information