Bug 1819335 Part 1 - Do not create a forced break for CSS named page change immediately before an nsPageBreakFrame. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D191710
This commit is contained in:
@@ -3082,7 +3082,7 @@ void nsBlockFrame::ReflowDirtyLines(BlockReflowState& aState) {
|
||||
if (canBreakForPageNames && (!aState.mReflowInput.mFlags.mIsTopOfPage ||
|
||||
!aState.IsAdjacentWithBStart())) {
|
||||
const nsIFrame* const frame = line->mFirstChild;
|
||||
if (!frame->IsPlaceholderFrame()) {
|
||||
if (!frame->IsPlaceholderFrame() && !frame->IsPageBreakFrame()) {
|
||||
nextPageName = frame->GetStartPageValue();
|
||||
// Walk back to the last frame that isn't a placeholder.
|
||||
const nsIFrame* prevFrame = frame->GetPrevSibling();
|
||||
|
||||
Reference in New Issue
Block a user